summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@cvs.openbsd.org>2015-11-05 08:59:24 +0000
committerSunil Nimmagadda <sunil@cvs.openbsd.org>2015-11-05 08:59:24 +0000
commitf765431d28157777420c73946a9a414a7a2341cd (patch)
tree35591c4b941746e6e8db1e6d654bd08d9dce519b /usr.sbin/smtpd
parent63ffad7f31e9f03cbe87f9ae9c92871ee7a4dc64 (diff)
Do not terminate message walk on a corrupt envelope.
Ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/queue_backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/queue_backend.c b/usr.sbin/smtpd/queue_backend.c
index 17b77c48805..590f6c888af 100644
--- a/usr.sbin/smtpd/queue_backend.c
+++ b/usr.sbin/smtpd/queue_backend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue_backend.c,v 1.57 2015/10/29 10:25:36 sunil Exp $ */
+/* $OpenBSD: queue_backend.c,v 1.58 2015/11/05 08:59:23 sunil Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
@@ -657,7 +657,7 @@ queue_message_walk(struct envelope *ep, uint32_t msgid, int *done, void **data)
(void)queue_message_corrupt(evpid_to_msgid(evpid));
}
- return (-1);
+ return (0);
}
int