You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by km...@apache.org on 2011/05/10 21:29:52 UTC

svn commit: r1101612 - /spamassassin/branches/3.3/spamc/libspamc.c

Author: kmcgrail
Date: Tue May 10 19:29:52 2011
New Revision: 1101612

URL: http://svn.apache.org/viewvc?rev=1101612&view=rev
Log:
NULL reference bug in libspamc. Quick workaround to avoid a crash. bug 6562.

Modified:
    spamassassin/branches/3.3/spamc/libspamc.c

Modified: spamassassin/branches/3.3/spamc/libspamc.c
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.3/spamc/libspamc.c?rev=1101612&r1=1101611&r2=1101612&view=diff
==============================================================================
--- spamassassin/branches/3.3/spamc/libspamc.c (original)
+++ spamassassin/branches/3.3/spamc/libspamc.c Tue May 10 19:29:52 2011
@@ -853,6 +853,10 @@ void message_dump(int in_fd, int out_fd,
     char buf[8196];
     int bytes;
 
+    if (m == NULL) {
+      return; /* Bug 6562 reported by Frederik Deweerdt <fr...@xprog.eu> */
+    }
+
     if (m != NULL && m->type != MESSAGE_NONE) {
 	message_write(out_fd, m);
     }