commit
56e8b57228
|
@ -368,7 +368,9 @@ void tscProcessAsyncRes(SSchedMsg *pMsg) {
|
|||
pSql->fp = pSql->fetchFp;
|
||||
}
|
||||
|
||||
(*pSql->fp)(pSql->param, taosres, code);
|
||||
if (pSql->fp) {
|
||||
(*pSql->fp)(pSql->param, taosres, code);
|
||||
}
|
||||
|
||||
if (shouldFree) {
|
||||
tscTrace("%p sqlObj is automatically freed in async res", pSql);
|
||||
|
|
|
@ -1451,8 +1451,6 @@ bool tscShouldBeFreed(SSqlObj* pSql) {
|
|||
return false;
|
||||
}
|
||||
|
||||
assert(pSql->fp != NULL);
|
||||
|
||||
STscObj* pTscObj = pSql->pTscObj;
|
||||
if (pSql->pStream != NULL || pTscObj->pHb == pSql || pSql->pSubscription != NULL) {
|
||||
return false;
|
||||
|
|
|
@ -924,7 +924,7 @@ static void *rpcProcessMsgFromPeer(SRecvInfo *pRecv) {
|
|||
// underlying UDP layer does not know it is server or client
|
||||
pRecv->connType = pRecv->connType | pRpc->connType;
|
||||
|
||||
if (pRecv->ip == 0) {
|
||||
if (pRecv->msg == NULL) {
|
||||
rpcProcessBrokenLink(pConn);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue