From 750fed21015beba61b7c5bd143f332042906dc09 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 27 Apr 2022 21:25:51 +0200 Subject: [PATCH] packetpool: minor cleanup --- src/tmqh-packetpool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)