Fix warning in count_unrecognized_commands plugin (thanks to spaze
and Roger Walker) git-svn-id: https://svn.perl.org/qpsmtpd/trunk@279 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
42719a179f
commit
2ab4613567
3
Changes
3
Changes
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
[ many changes from cvs logs, gah ]
|
[ many changes from cvs logs, gah ]
|
||||||
|
|
||||||
|
Fix warning in count_unrecognized_commands plugin (thanks to spaze
|
||||||
|
and Roger Walker)
|
||||||
|
|
||||||
Improve error messages from the Postfix module (Erik I. Bolsø,
|
Improve error messages from the Postfix module (Erik I. Bolsø,
|
||||||
<knan at mo.himolde.no>)
|
<knan at mo.himolde.no>)
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ sub check_unrec_cmd {
|
|||||||
|
|
||||||
my $badcmdcount =
|
my $badcmdcount =
|
||||||
$self->qp->connection->notes('unrec_cmd_count',
|
$self->qp->connection->notes('unrec_cmd_count',
|
||||||
$self->qp->connection->notes('unrec_cmd_count') + 1
|
($self->qp->connection->notes('unrec_cmd_count') || 0) + 1
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($badcmdcount >= $self->{_unrec_cmd_max}) {
|
if ($badcmdcount >= $self->{_unrec_cmd_max}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user