avoid null pointer
This commit is contained in:
parent
4e87bcc97a
commit
0254e90ce6
|
@ -887,7 +887,8 @@ void cliConnCb(uv_connect_t* req, int status) {
|
||||||
pConn->port, uv_strerror(status));
|
pConn->port, uv_strerror(status));
|
||||||
SCliMsg* pMsg = transQueueGet(&pConn->cliMsgs, 0);
|
SCliMsg* pMsg = transQueueGet(&pConn->cliMsgs, 0);
|
||||||
STrans* pTransInst = pThrd->pTransInst;
|
STrans* pTransInst = pThrd->pTransInst;
|
||||||
if (REQUEST_NO_RESP(&pMsg->msg) && (pTransInst->failFastFp != NULL && pTransInst->failFastFp(pMsg->msg.msgType))) {
|
if (pMsg != NULL && REQUEST_NO_RESP(&pMsg->msg) &&
|
||||||
|
(pTransInst->failFastFp != NULL && pTransInst->failFastFp(pMsg->msg.msgType))) {
|
||||||
char* ip = pConn->ip;
|
char* ip = pConn->ip;
|
||||||
uint32_t port = pConn->port;
|
uint32_t port = pConn->port;
|
||||||
char key[TSDB_FQDN_LEN + 64] = {0};
|
char key[TSDB_FQDN_LEN + 64] = {0};
|
||||||
|
|
Loading…
Reference in New Issue