From 8d5d2914101b52f61031d3e417f2f2790f69893d Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Sun, 7 Dec 2008 01:03:26 +0000 Subject: Don't check / reset s->s_msg.datafp where its state is obviously known. --- usr.sbin/smtpd/smtp_session.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c index 0a17edd5d59..ebb9b289b99 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.23 2008/12/06 14:58:09 jacekm Exp $ */ +/* $OpenBSD: smtp_session.c,v 1.24 2008/12/07 01:03:25 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -593,13 +593,6 @@ session_pickup(struct session *s, struct submit_status *ss) s->s_state = S_MAIL; s->s_msg.sender = ss->u.path; - if (s->s_msg.datafp != NULL) { - fclose(s->s_msg.datafp); - s->s_msg.datafp = NULL; - imsg_compose(s->s_env->sc_ibufs[PROC_QUEUE], IMSG_QUEUE_REMOVE_MESSAGE, - 0, 0, -1, &s->s_msg, sizeof(s->s_msg)); - } - imsg_compose(s->s_env->sc_ibufs[PROC_QUEUE], IMSG_QUEUE_CREATE_MESSAGE, 0, 0, -1, &s->s_msg, sizeof(s->s_msg)); @@ -660,7 +653,6 @@ session_pickup(struct session *s, struct submit_status *ss) case S_DONE: s->s_state = S_HELO; - s->s_msg.datafp = NULL; evbuffer_add_printf(s->s_bev->output, "250 %s Message accepted for delivery\r\n", s->s_msg.message_id); -- cgit v1.2.3