From b76d6af332f030d753707be0b94e75c951ecce4b Mon Sep 17 00:00:00 2001 From: Xiaxin Li Date: Thu, 16 Dec 2021 17:17:59 +0800 Subject: [PATCH] Update tnettest.c --- src/util/src/tnettest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tnettest.c b/src/util/src/tnettest.c index c6d64d1ae5..d3026366a6 100644 --- a/src/util/src/tnettest.c +++ b/src/util/src/tnettest.c @@ -364,7 +364,7 @@ static int32_t taosNetCheckRpc(const char* serverFqdn, uint16_t port, uint16_t p reqMsg.code = 0; reqMsg.handle = NULL; // rpc handle returned to app reqMsg.ahandle = NULL; // app handle set by client - tstrncpy((char*)reqMsg.pCont, "nettest", pkgLen); + tstrncpy((char*)reqMsg.pCont, "nettest", pktLen); rpcSendRecv(pRpcConn, &epSet, &reqMsg, &rspMsg); -- GitLab