summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtp_session.c
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-01-28 17:29:12 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-01-28 17:29:12 +0000
commit1670dd7aac37cc5b3762904fbc126d853757833d (patch)
tree9372bff0bcba161a2ffd2054680eeb2fb7f7c359 /usr.sbin/smtpd/smtp_session.c
parent91263de6542bab4330c09f524ae97bec31d687c1 (diff)
Make races between queue and runner impossible by implementing the policy:
1) queue never reads /queue. 2) queue writes to /queue only at message injection time. 3) runner does all reading, and all writing apart from 2). ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtp_session.c')
-rw-r--r--usr.sbin/smtpd/smtp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 32a9e4b3573..0298da84b77 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.41 2009/01/28 11:27:57 gilles Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.42 2009/01/28 17:29:11 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -717,7 +717,7 @@ session_pickup(struct session *s, struct submit_status *ss)
case S_DONE:
s->s_state = S_HELO;
-
+ s->s_msg.message_id[0] = '\0';
session_respond(s, "250 %s Message accepted for delivery",
s->s_msg.message_id);