loop: max loops was sometimes not set

This commit is contained in:
Matt Simerson 2012-06-23 00:38:58 -04:00
parent fb4690ab43
commit e9395d6a79

View File

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