Skip to content

Commit

Permalink
Changed protocol testing condition from ($ver == 2) to ($ver >= 2 && …
Browse files Browse the repository at this point in the history
…$ver <= 6) to make the milter work with Sendmail 8.14
  • Loading branch information
Ævar Arnfjörð Bjarmason committed Feb 23, 2009
1 parent 1ee983b commit 40a4dbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
$Id: Changes,v 1.28 2004/08/10 21:10:36 tvierling Exp $

Revision history for Perl extension Sendmail::PMilter.

0.97 Mon Feb 23 23:39:15 2009 UTC
- RT#43327: Changed protocol testing condition from ($ver == 2) to ($ver >= 2 && $ver <= 6)
to make the milter work with Sendmail 8.14
- Removed CVS Id from Changes file

0.96 Sat Jul 07 18:27:25 2007 UTC
- Changed threads::shared::share(\$nchildren) to
threads::shared::share($nchildren), this should fix some failing smokes
Expand Down
2 changes: 1 addition & 1 deletion lib/Sendmail/PMilter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use Socket;
use Symbol;
use UNIVERSAL;

our $VERSION = '0.96';
our $VERSION = '0.97';
our $DEBUG = 0;

=pod
Expand Down
2 changes: 1 addition & 1 deletion lib/Sendmail/PMilter/Context.pm
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ sub main ($) {
die "SMFIC_OPTNEG: packet has wrong size\n" unless (length($buf) == 12);

my ($ver, $actions, $protocol) = unpack('NNN', $buf);
die "SMFIC_OPTNEG: unknown milter protocol version $ver\n" unless ($ver == 2);
die "SMFIC_OPTNEG: unknown milter protocol version $ver\n" unless ($ver >= 2 && $ver <= 6);

$this->write_packet(SMFIC_OPTNEG, pack('NNN', 2,
$this->{callback_flags} & $actions,
Expand Down

0 comments on commit 40a4dbf

Please sign in to comment.