fix bug, #1184 [tbase-1509]

This commit is contained in:
hjxilinx 2020-02-04 23:26:13 +08:00
parent 5031ac2144
commit 68a3eab0a5
1 changed files with 2 additions and 3 deletions

View File

@ -499,10 +499,9 @@ int mgmtKillConnection(char *qidstr, SConnObj *pConn) {
uint32_t ip = inet_addr(temp);
temp = chr + 1;
short port = htons(atoi(temp));
uint16_t port = htons(atoi(temp));
SAcctObj *pAcct = pConn->pAcct;
pthread_mutex_lock(&pAcct->mutex);
pConn = pAcct->pConn;