Mailing List Archive

svn commit: rev 9794 - incubator/spamassassin/trunk/spamd
Author: sidney
Date: Sat Mar 27 14:31:27 2004
New Revision: 9794

Modified:
incubator/spamassassin/trunk/spamd/spamd.raw
Log:
bug #3192: anonymous sub spawned in spamd was sometimes not returning a value,
causing a cryptic undef warning in spawn's exit call. Fixed by always
returning some value.


Modified: incubator/spamassassin/trunk/spamd/spamd.raw
==============================================================================
--- incubator/spamassassin/trunk/spamd/spamd.raw (original)
+++ incubator/spamassassin/trunk/spamd/spamd.raw Sat Mar 27 14:31:27 2004
@@ -709,8 +709,6 @@
{
logmsg "skipped large message in ".
sprintf("%3d", time - $start) ." seconds.";
- return 0;
-
}

# It might be a CHECK message, meaning that we should just check
@@ -726,14 +724,15 @@
elsif (/PING SPAMC\/(.*)/)
{
print $client "SPAMD/1.2 $resphash{EX_OK} PONG\r\n";
- return 0;
}
# If it was none of the above, then we don't know what it was.

else
{
protocol_error ($_);
+ return 1;
}
+ return 0;
};
}
}