summaryrefslogtreecommitdiff
path: root/mail/sendmail813/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'mail/sendmail813/patches/patch-ak')
-rw-r--r--mail/sendmail813/patches/patch-ak23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/sendmail813/patches/patch-ak b/mail/sendmail813/patches/patch-ak
new file mode 100644
index 00000000000..c0420a91360
--- /dev/null
+++ b/mail/sendmail813/patches/patch-ak
@@ -0,0 +1,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)
+ {