summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2012-07-28 12:06:41 +0000
committerchl <chl@openbsd.org>2012-07-28 12:06:41 +0000
commit39012854c0889135adf37fd262ad43d5188c6086 (patch)
treea98f3a71df2ad02e8402d80643a9802ad1a945a8
parentReturn a proper error message when we end up needed to parse (diff)
downloadwireguard-openbsd-39012854c0889135adf37fd262ad43d5188c6086.tar.xz
wireguard-openbsd-39012854c0889135adf37fd262ad43d5188c6086.zip
fix uninitialized field type in scheduler_info struct.
found with valgrind on -portable. ok gilles@
-rw-r--r--usr.sbin/smtpd/scheduler_backend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/scheduler_backend.c b/usr.sbin/smtpd/scheduler_backend.c
index 68187756b1f..e22411fb7d9 100644
--- a/usr.sbin/smtpd/scheduler_backend.c
+++ b/usr.sbin/smtpd/scheduler_backend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scheduler_backend.c,v 1.1 2012/07/09 09:57:53 gilles Exp $ */
+/* $OpenBSD: scheduler_backend.c,v 1.2 2012/07/28 12:06:41 chl Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@openbsd.org>
@@ -50,7 +50,8 @@ scheduler_info(struct scheduler_info *sched, struct envelope *evp)
{
strlcpy(sched->destination, evp->dest.domain, sizeof sched->destination);
- sched->evpid = evp->id;
+ sched->evpid = evp->id;
+ sched->type = evp->type;
sched->creation = evp->creation;
sched->lasttry = evp->lasttry;
sched->expire = evp->expire;