[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
segfault in smtpdata.c
I don't know if this is a Right Fix, but without it I experience
segfaults in smtpserver. With the fix, it seems to work.
Index: smtpserver/smtpdata.c
===================================================================
RCS file: /cvsroot/zmailer/smtpserver/smtpdata.c,v
retrieving revision 1.34
diff -u -r1.34 smtpdata.c
--- smtpserver/smtpdata.c 2000/10/16 11:32:39 1.34
+++ smtpserver/smtpdata.c 2000/10/16 16:37:08
@@ -183,7 +183,7 @@
ss = policymsg(policydb, &SS->policystate);
ss0 = "";
- if (!('0' <= *ss && *ss <= '9')) {
+ if (!ss || !('0' <= *ss && *ss <= '9')) {
/* The message is not starting with a number */
ss0 = NULL;
}