diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2008-11-17 21:52:01 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2008-11-17 21:52:01 +0000 |
commit | fa314e7784e506ce18264fd18adeba23bdf66608 (patch) | |
tree | c698c09bc7d960afcfa0f6f8d81aa454d4499a33 /usr.sbin/smtpd/smtp_session.c | |
parent | 733d56667b225a575f8de3c93dce2ec946da0896 (diff) |
- clear session flags upon helo/ehlo
Diffstat (limited to 'usr.sbin/smtpd/smtp_session.c')
-rw-r--r-- | usr.sbin/smtpd/smtp_session.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c index 9a268d1c5db..61a1b451a91 100644 --- a/usr.sbin/smtpd/smtp_session.c +++ b/usr.sbin/smtpd/smtp_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_session.c,v 1.7 2008/11/17 21:50:43 gilles Exp $ */ +/* $OpenBSD: smtp_session.c,v 1.8 2008/11/17 21:52:00 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -234,6 +234,7 @@ session_rfc5321_helo_handler(struct session *s, char *args) } s->s_state = S_HELO; + s->s_flags = 0; if (s->s_ss.ss_family == PF_INET) { struct sockaddr_in *ssin = (struct sockaddr_in *)&s->s_ss; @@ -275,7 +276,7 @@ session_rfc5321_ehlo_handler(struct session *s, char *args) } s->s_state = S_HELO; - s->s_flags |= F_EHLO; + s->s_flags = F_EHLO; s->s_flags |= F_8BITMIME; if (s->s_ss.ss_family == PF_INET) { |