Correct handling of handle_first_entry() to avoid runaway recursion.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-01-26 12:18:17 -08:00
parent 69b660ba56
commit 6ce392b08e

View File

@ -2983,8 +2983,11 @@ sub handle_first_entry() {
# $first_entry can contain either a function reference or a message. If it
# contains a reference, call the function -- otherwise issue the message
#
reftype( $first_entry ) ? $first_entry->() : progress_message2( $first_entry );
my $entry = $first_entry;
$first_entry = 0;
reftype( $entry ) ? $entry->() : progress_message2( $entry );
}
#