summaryrefslogtreecommitdiff
path: root/contrib/sendmail/src/srvrsmtp.c
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2006-08-17 05:10:43 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2006-08-17 05:10:43 +0000
commit3a3ef73d37c9a94a369656b0ac2490c212e01cb1 (patch)
tree5f8206fabf17de836a5a6161ba1e0d5ff61638e4 /contrib/sendmail/src/srvrsmtp.c
parentaf9557fdd1de47bcfff61cccba2930e93ec4e69b (diff)
Diffstat (limited to 'contrib/sendmail/src/srvrsmtp.c')
-rw-r--r--contrib/sendmail/src/srvrsmtp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/sendmail/src/srvrsmtp.c b/contrib/sendmail/src/srvrsmtp.c
index c75214f05707..d95b5a5b7225 100644
--- a/contrib/sendmail/src/srvrsmtp.c
+++ b/contrib/sendmail/src/srvrsmtp.c
@@ -17,7 +17,7 @@
# include <libmilter/mfdef.h>
#endif /* MILTER */
-SM_RCSID("@(#)$Id: srvrsmtp.c,v 8.924.2.2 2006/05/31 20:56:37 ca Exp $")
+SM_RCSID("@(#)$Id: srvrsmtp.c,v 8.924.2.5 2006/07/07 16:29:39 ca Exp $")
#include <sm/time.h>
#include <sm/fdset.h>
@@ -851,8 +851,9 @@ smtp(nullserver, d_flags, e)
char state;
char *response;
- response = milter_connect(peerhostname, RealHostAddr,
- e, &state);
+ q = macvalue(macid("{client_name}"), e);
+ SM_ASSERT(q != NULL);
+ response = milter_connect(q, RealHostAddr, e, &state);
switch (state)
{
case SMFIR_REPLYCODE: /* REPLYCODE shouldn't happen */