summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2008-12-22 00:44:33 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2008-12-22 00:44:33 +0000
commit2e43bf9f0ec166848215f9b3522ac9e04da11ad8 (patch)
tree323f360820415b63cc9a5d52499f022219139195 /usr.sbin
parent251bd627b406306810fd9cbbb28ae2eb44cbbc80 (diff)
To reset state, it's enough to set s->s_state = S_HELO, rcptcount
is zeroed in MAIL FROM handler; ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/smtp_session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index fdb3be64e22..81a68a87941 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.35 2008/12/21 19:27:57 jacekm Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.36 2008/12/22 00:44:32 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -380,7 +380,6 @@ session_rfc5321_ehlo_handler(struct session *s, char *args)
int
session_rfc5321_rset_handler(struct session *s, char *args)
{
- s->s_msg.rcptcount = 0;
s->s_state = S_HELO;
session_respond(s, "250 Reset state");