clamdscan: fix karma decrementer

This commit is contained in:
Matt Simerson 2012-06-25 02:57:37 -04:00
parent 8d69b923fa
commit 4d394e847b

View File

@ -140,7 +140,7 @@ sub data_post_handler {
my $filename = $self->get_filename( $transaction ) or return DECLINED; my $filename = $self->get_filename( $transaction ) or return DECLINED;
return (DECLINED) if $self->is_immune( ); return (DECLINED) if $self->is_immune();
return (DECLINED) if $self->is_too_big( $transaction ); return (DECLINED) if $self->is_too_big( $transaction );
return (DECLINED) if $self->is_not_multipart( $transaction ); return (DECLINED) if $self->is_not_multipart( $transaction );
@ -167,7 +167,7 @@ sub data_post_handler {
$self->connection->notes('naughty', 1); # see plugins/naughty $self->connection->notes('naughty', 1); # see plugins/naughty
if ( defined $self->connection->notes('karma') ) { if ( defined $self->connection->notes('karma') ) {
$self->connection->notes('karma', $self->connection->notes('karma') - 1); $self->connection->notes('karma', ($self->connection->notes('karma') - 1));
}; };
if ( $self->{_args}{deny_viruses} ) { if ( $self->{_args}{deny_viruses} ) {