From 429602a4070824211f67ae958631012fe043135d Mon Sep 17 00:00:00 2001 From: Eric Allman Date: Mon, 28 Nov 1994 00:36:42 -0800 Subject: [PATCH] don't set q_statmta if the current host name is null SCCS-vsn: usr.sbin/sendmail/src/deliver.c 8.117 --- usr/src/usr.sbin/sendmail/src/deliver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/src/usr.sbin/sendmail/src/deliver.c b/usr/src/usr.sbin/sendmail/src/deliver.c index 61f370ed34..491b431115 100644 --- a/usr/src/usr.sbin/sendmail/src/deliver.c +++ b/usr/src/usr.sbin/sendmail/src/deliver.c @@ -7,7 +7,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)deliver.c 8.116 (Berkeley) %G%"; +static char sccsid[] = "@(#)deliver.c 8.117 (Berkeley) %G%"; #endif /* not lint */ #include "sendmail.h" @@ -1694,7 +1694,8 @@ markfailure(e, q, mci, rcode) q->q_status = stat; q->q_statdate = curtime(); - q->q_statmta = newstr(CurHostName); + if (CurHostName != NULL && CurHostName[0] != '\0') + q->q_statmta = newstr(CurHostName); if (rcode != EX_OK && q->q_rstatus == NULL) { char buf[30]; -- 2.20.1