diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-10-25 14:06:09 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-10-25 14:06:09 +0000 |
commit | dccc5deff3bbe1a353692c996f93156eb3e1d0ef (patch) | |
tree | 5b2a99647740caed51f498b3773ced1704b79437 /usr.sbin/smtpd | |
parent | f0b30bdb85f9ff76251bd33e795e8960706dffb0 (diff) |
send the semantically correct msg when RCPT fails, even if the exact value
does not matter.
spotted by chl@
ok gilles@ chl@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/mfa.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mfa.c b/usr.sbin/smtpd/mfa.c index efaed0af2f6..261ccca0996 100644 --- a/usr.sbin/smtpd/mfa.c +++ b/usr.sbin/smtpd/mfa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfa.c,v 1.71 2012/09/29 11:02:41 eric Exp $ */ +/* $OpenBSD: mfa.c,v 1.72 2012/10/25 14:06:08 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -90,11 +90,15 @@ mfa_imsg(struct imsgev *iev, struct imsg *imsg) if (iev->proc == PROC_LKA) { switch (imsg->hdr.type) { case IMSG_LKA_MAIL: - case IMSG_LKA_RCPT: imsg_compose_event(env->sc_ievs[PROC_SMTP], IMSG_MFA_MAIL, 0, 0, -1, imsg->data, sizeof(struct submit_status)); return; + case IMSG_LKA_RCPT: + imsg_compose_event(env->sc_ievs[PROC_SMTP], + IMSG_MFA_RCPT, 0, 0, -1, imsg->data, + sizeof(struct submit_status)); + return; case IMSG_LKA_RULEMATCH: mfa_test_rcpt_resume(imsg->data); |