diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2008-12-22 13:18:59 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2008-12-22 13:18:59 +0000 |
commit | cf69d7a1a460ff5af9e271cdce976b46e3028b87 (patch) | |
tree | 4f7f51d91cfbae632ac7746c7d49c89816212850 | |
parent | ed32dc8017828d8a054aa53cc3574faafe6f372b (diff) |
s->s_msg.session_hostname must hold resolved hostname as well; ok gilles@
-rw-r--r-- | usr.sbin/smtpd/smtp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtp.c b/usr.sbin/smtpd/smtp.c index 84d0e345432..832a2678e27 100644 --- a/usr.sbin/smtpd/smtp.c +++ b/usr.sbin/smtpd/smtp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp.c,v 1.11 2008/12/21 18:51:08 gilles Exp $ */ +/* $OpenBSD: smtp.c,v 1.12 2008/12/22 13:18:58 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -305,12 +305,14 @@ smtp_dispatch_lka(int sig, short event, void *p) ss = SPLAY_FIND(sessiontree, &env->sc_sessions, &key); if (ss == NULL) { - /* Session was removed while we were waiting for the message */ + /* Session was removed while we were waiting + * for the message */ break; } strlcpy(ss->s_hostname, s->s_hostname, MAXHOSTNAMELEN); - + strlcpy(ss->s_msg.session_hostname, s->s_hostname, + MAXHOSTNAMELEN); break; } default: |