summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunil <sunil@openbsd.org>2015-11-05 08:59:23 +0000
committersunil <sunil@openbsd.org>2015-11-05 08:59:23 +0000
commite65271f7aa6ef9e06b09c7c3561e9845c8a3495f (patch)
tree2e30ff422f84a3e020623e34761b62ba9d12bdc4
parentwhen a message consists solely of headers and does not end them with an (diff)
downloadwireguard-openbsd-e65271f7aa6ef9e06b09c7c3561e9845c8a3495f.tar.xz
wireguard-openbsd-e65271f7aa6ef9e06b09c7c3561e9845c8a3495f.zip
Do not terminate message walk on a corrupt envelope.
Ok gilles@
-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