summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2014-08-11 09:50:51 +0000
committergilles <gilles@openbsd.org>2014-08-11 09:50:51 +0000
commit5232460e6537e09ae5bec550b787bbe5c6a6349b (patch)
tree83eeb527ec1151fe94208a9c55663e0860f34e22
parentDo not try to delete RTF_LOCAL entries. Such routes are automatically (diff)
downloadwireguard-openbsd-5232460e6537e09ae5bec550b787bbe5c6a6349b.tar.xz
wireguard-openbsd-5232460e6537e09ae5bec550b787bbe5c6a6349b.zip
missing memset in table_api.c (currently only used by pluggable tables)
diff from Martijn van Duren
-rw-r--r--usr.sbin/smtpd/table_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/table_api.c b/usr.sbin/smtpd/table_api.c
index c5c42393da2..48d70a8d205 100644
--- a/usr.sbin/smtpd/table_api.c
+++ b/usr.sbin/smtpd/table_api.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table_api.c,v 1.5 2014/07/08 13:49:09 eric Exp $ */
+/* $OpenBSD: table_api.c,v 1.6 2014/08/11 09:50:51 gilles Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -138,6 +138,7 @@ table_msg_dispatch(void)
char res[4096];
int type, r;
+ memset(res, 0, sizeof res);
switch (imsg.hdr.type) {
case PROC_TABLE_OPEN:
table_msg_get(&op, sizeof op);