From: Victor Julien Date: Wed, 27 Apr 2022 19:25:51 +0000 (+0200) Subject: packetpool: minor cleanup X-Git-Tag: suricata-7.0.0-beta1~604 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=750fed21015beba61b7c5bd143f332042906dc09;p=thirdparty%2Fsuricata.git packetpool: minor cleanup --- diff --git a/src/tmqh-packetpool.c b/src/tmqh-packetpool.c index 3ca5d87c0b..92b017a038 100644 --- a/src/tmqh-packetpool.c +++ b/src/tmqh-packetpool.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2014 Open Information Security Foundation +/* Copyright (C) 2007-2022 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free @@ -113,13 +113,13 @@ void PacketPoolWait(void) void PacketPoolWaitForN(int n) { PktPool *my_pool = GetThreadPacketPool(); - Packet *p, *pp; while (1) { PacketPoolWait(); /* count packets in our stack */ int i = 0; + Packet *p, *pp; pp = p = my_pool->head; while (p != NULL) { if (++i == n)