From 68a3eab0a5e4d5d6aa1be4fb8120ad227e1c3601 Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Tue, 4 Feb 2020 23:26:13 +0800 Subject: [PATCH] fix bug, #1184 [tbase-1509] --- src/system/detail/src/mgmtProfile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/system/detail/src/mgmtProfile.c b/src/system/detail/src/mgmtProfile.c index e7dbeaaa25..c1cd989523 100644 --- a/src/system/detail/src/mgmtProfile.c +++ b/src/system/detail/src/mgmtProfile.c @@ -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; -- GitLab