summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/mta.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/mta.c')
-rw-r--r--usr.sbin/smtpd/mta.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c
index 9abd62d05f9..e6d94d1c08c 100644
--- a/usr.sbin/smtpd/mta.c
+++ b/usr.sbin/smtpd/mta.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mta.c,v 1.40 2009/04/09 19:49:34 jacekm Exp $ */
+/* $OpenBSD: mta.c,v 1.41 2009/04/15 20:02:12 jacekm Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -525,8 +525,10 @@ mta_connect(struct session *sessionp)
struct mxhost *mxhost;
mxhost = TAILQ_FIRST(&sessionp->mxhosts);
- if (mxhost == NULL)
+ if (mxhost == NULL) {
+ sessionp->batch->status |= S_BATCH_TEMPFAILURE;
return -1;
+ }
if ((s = socket(mxhost->ss.ss_family, SOCK_STREAM, 0)) == -1) {
goto bad;