From 4d394e847b0c4cf500a47fe3a00e16a1dbfb86b0 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 25 Jun 2012 02:57:37 -0400 Subject: [PATCH] clamdscan: fix karma decrementer --- plugins/virus/clamdscan | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/virus/clamdscan b/plugins/virus/clamdscan index 854aaf3..0af2929 100644 --- a/plugins/virus/clamdscan +++ b/plugins/virus/clamdscan @@ -140,7 +140,7 @@ sub data_post_handler { 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_not_multipart( $transaction ); @@ -167,7 +167,7 @@ sub data_post_handler { $self->connection->notes('naughty', 1); # see plugins/naughty 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} ) {