loop: max loops was sometimes not set

This commit is contained in:
Matt Simerson 2012-06-23 00:38:58 -04:00
parent 283610fb73
commit 12e7895d4c

View File

@ -35,6 +35,7 @@ sub init {
if ( $self->{_max_hops} !~ /^\d+$/ ) {
$self->log(LOGWARN, "Invalid max_hops value -- using default");
$self->{_max_hops} = 100;
}
$self->log(LOGWARN, "Ignoring additional arguments") if @args > 1;
}