ippair: fix minor coverity warning

CID 1554232:  Data race undermines locking  (LOCK_EVASION)

Ticket #6565.
pull/9882/head
Victor Julien 1 year ago committed by Victor Julien
parent 1f7e61ef61
commit 487b78fb3d

@ -338,14 +338,11 @@ void IPPairShutdown(void)
*/
void IPPairCleanup(void)
{
IPPair *h;
uint32_t u;
if (ippair_hash != NULL) {
for (u = 0; u < ippair_config.hash_size; u++) {
h = ippair_hash[u].head;
for (uint32_t u = 0; u < ippair_config.hash_size; u++) {
IPPairHashRow *hb = &ippair_hash[u];
HRLOCK_LOCK(hb);
IPPair *h = ippair_hash[u].head;
while (h) {
if ((SC_ATOMIC_GET(h->use_cnt) > 0)) {
/* iprep is attached to ippair only clear local storage */

Loading…
Cancel
Save