summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-12-16 02:20:33 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-12-16 02:20:33 +0000
commit0c6d22d289641f3605f78c2ec12037e921cdfb6f (patch)
tree1107c0577ce073220b46dc3eff8da68faf60fb3b
parent8f49e4d5f88264b0fbfc485a941bdde99ad92ecc (diff)
Fix RCPT TO failure handling, bug introduced in r1.18.
-rw-r--r--usr.sbin/smtpd/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/client.c b/usr.sbin/smtpd/client.c
index 98481fa9115..a52c3842bf3 100644
--- a/usr.sbin/smtpd/client.c
+++ b/usr.sbin/smtpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.20 2009/12/15 11:45:51 jacekm Exp $ */
+/* $OpenBSD: client.c,v 1.21 2009/12/16 02:20:32 jacekm Exp $ */
/*
* Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
@@ -257,7 +257,7 @@ client_talk(struct smtp_client *sp)
if (ret == CLIENT_WANT_READ)
sp->handler = client_read;
- else if (ret == CLIENT_WANT_WRITE)
+ else if (ret == CLIENT_WANT_WRITE || ret == CLIENT_RCPT_FAIL)
sp->handler = client_write;
return (ret);