security flag shall be reset if a newlink from client

This commit is contained in:
Jeff Tao 2020-05-27 02:48:00 +00:00
parent 5e2d1aaeff
commit a46e41f0e5
1 changed files with 4 additions and 1 deletions

View File

@ -594,7 +594,10 @@ static SRpcConn *rpcAllocateServerConn(SRpcInfo *pRpc, SRecvInfo *pRecv) {
// check if it is already allocated
SRpcConn **ppConn = (SRpcConn **)(taosHashGet(pRpc->hash, hashstr, size));
if (ppConn) pConn = *ppConn;
if (pConn) return pConn;
if (pConn) {
pConn->secured = 0;
return pConn;
}
int sid = taosAllocateId(pRpc->idPool);
if (sid <= 0) {