log the message-id only if non-null
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 15 Jun 1983 02:05:18 +0000 (18:05 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 15 Jun 1983 02:05:18 +0000 (18:05 -0800)
SCCS-vsn: usr.sbin/sendmail/src/headers.c 3.59
SCCS-vsn: usr.sbin/sendmail/src/version.c 3.346

usr/src/usr.sbin/sendmail/src/headers.c
usr/src/usr.sbin/sendmail/src/version.c

index c2a56aa..ca1a36f 100644 (file)
@@ -1,7 +1,7 @@
 # include <errno.h>
 # include "sendmail.h"
 
 # include <errno.h>
 # include "sendmail.h"
 
-SCCSID(@(#)headers.c   3.58            %G%);
+SCCSID(@(#)headers.c   3.59            %G%);
 
 /*
 **  CHOMPHEADER -- process and save a header line.
 
 /*
 **  CHOMPHEADER -- process and save a header line.
@@ -296,7 +296,7 @@ eatheader(e)
 
                /* log the message-id */
 #ifdef LOG
 
                /* log the message-id */
 #ifdef LOG
-               if (!QueueRun && LogLevel > 8 &&
+               if (!QueueRun && LogLevel > 8 && h->h_value != NULL &&
                    strcmp(h->h_field, "message-id") == 0)
                {
                        char buf[MAXNAME];
                    strcmp(h->h_field, "message-id") == 0)
                {
                        char buf[MAXNAME];
index b418643..06ab1f3 100644 (file)
@@ -1,5 +1,5 @@
 # ifndef lint
 # ifndef lint
-static char    SccsId[] = "@(#)SendMail version 3.345 of %G%";
+static char    SccsId[] = "@(#)SendMail version 3.346 of %G%";
 # endif lint
 
 # endif lint
 
-char   Version[] = "3.345";
+char   Version[] = "3.346";