Merge pull request #3185 from taosdata/bugfix/td-1189

fix td-1189
This commit is contained in:
Shengliang Guan 2020-08-23 20:08:16 +08:00 committed by GitHub
commit 396d3aa0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ void rpcCancelRequest(void *handle) {
// signature is used to check if pContext is freed.
// pContext may have been released just before app calls the rpcCancelRequest
if (pContext->signature != pContext) return;
if (pContext == NULL || pContext->signature != pContext) return;
if (pContext->pConn) {
tDebug("%s, app tries to cancel request", pContext->pConn->info);