diff options
author | 2012-07-28 12:06:41 +0000 | |
---|---|---|
committer | 2012-07-28 12:06:41 +0000 | |
commit | 39012854c0889135adf37fd262ad43d5188c6086 (patch) | |
tree | a98f3a71df2ad02e8402d80643a9802ad1a945a8 | |
parent | Return a proper error message when we end up needed to parse (diff) | |
download | wireguard-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.c | 5 |
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; |