Merge pull request #2049 from taosdata/hotfix/rpcSecurity

security flag shall be reset if a newlink from client
This commit is contained in:
Shengliang Guan 2020-05-27 11:48:47 +08:00 committed by GitHub
commit dbe54d4046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {