Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix a couple of warnings from debug code
  • Loading branch information
grantm committed Sep 21, 2012
1 parent b1cb0c1 commit fc482ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bcvi
Expand Up @@ -1179,7 +1179,7 @@ sub dispatch_request {

$self->send_response(100);
my $req = $self->collect_headers();
$self->DEBUG("Calling host: " . $self->calling_host());
$self->DEBUG("Calling host: " . $self->calling_host) if $self->calling_host;
$self->validate_auth_key($req->{auth_key})
or $self->exit_response(900);
$self->DEBUG("Received command: $req->{command}");
Expand All @@ -1196,7 +1196,7 @@ sub validate_auth_key {

return 1 if $key && $key eq $self->auth_key;
my $alias = $self->calling_host();
$self->DEBUG("Invalid Auth-Key in request from $alias");
$self->DEBUG("Invalid Auth-Key in request from $alias") if $key;
return;
}

Expand Down

0 comments on commit fc482ff

Please sign in to comment.