forked from wolfSSL/wolfssl
fix sniffer assert comparison on newer gcc
This commit is contained in:
@@ -845,7 +845,7 @@ static SnifferSession* GetSnifferSession(IpInfo* ipInfo, TcpInfo* tcpInfo)
|
|||||||
SnifferSession* session;
|
SnifferSession* session;
|
||||||
|
|
||||||
word32 row = SessionHash(ipInfo, tcpInfo);
|
word32 row = SessionHash(ipInfo, tcpInfo);
|
||||||
assert(row >= 0 && row <= HASH_SIZE);
|
assert(row <= HASH_SIZE);
|
||||||
|
|
||||||
LockMutex(&SessionMutex);
|
LockMutex(&SessionMutex);
|
||||||
|
|
||||||
@@ -1585,7 +1585,7 @@ static void RemoveSession(SnifferSession* session, IpInfo* ipInfo,
|
|||||||
else
|
else
|
||||||
haveLock = 1;
|
haveLock = 1;
|
||||||
|
|
||||||
assert(row >= 0 && row <= HASH_SIZE);
|
assert(row <= HASH_SIZE);
|
||||||
Trace(REMOVE_SESSION_STR);
|
Trace(REMOVE_SESSION_STR);
|
||||||
|
|
||||||
if (!haveLock)
|
if (!haveLock)
|
||||||
|
Reference in New Issue
Block a user