summaryrefslogtreecommitdiff
path: root/mail/sendmail813/patches/patch-ak
blob: c0420a913607cfad6311bd88dcbccc7e1b896040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ak,v 1.1.1.1 2007/04/17 10:16:53 jnemeth Exp $

From: http://www.sendmail.org/patches/client_name.assert.p0
(file path fixed to be relative to source top)

Index: srvrsmtp.c
===================================================================
RCS file: /cvs/sendmail/srvrsmtp.c,v
retrieving revision 8.948
diff -u -r8.948 srvrsmtp.c
--- sendmail/srvrsmtp.c	15 Aug 2006 23:24:58 -0000	8.948
+++ sendmail/srvrsmtp.c	24 Aug 2006 16:47:19 -0000
@@ -945,7 +945,9 @@
 		char *response;
 
 		q = macvalue(macid("{client_name}"), e);
-		SM_ASSERT(q != NULL);
+		SM_ASSERT(q != NULL || OpMode == MD_SMTP);
+		if (q == NULL)
+			q = "localhost";
 		response = milter_connect(q, RealHostAddr, e, &state);
 		switch (state)
 		{