blob: 5a6e15b3976153dd3077eade32a9692686df9400 (
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.5 2006/09/05 20:01:37 tv 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)
{
|