summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2015-09-13 10:22:16 +0000
committerflorian <florian@openbsd.org>2015-09-13 10:22:16 +0000
commit741189788fa84ebf49e2742a96af3081cfe5e407 (patch)
tree8521369e54ba666a58d02e90b7eed664e9043c0f
parentMark IGNORE_IS_FATAL and IGNORE_SILENT as user settings explicitly. (diff)
downloadwireguard-openbsd-741189788fa84ebf49e2742a96af3081cfe5e407.tar.xz
wireguard-openbsd-741189788fa84ebf49e2742a96af3081cfe5e407.zip
explicit_bzero() from Michael McConville, thanks!
OK claudio
-rw-r--r--usr.sbin/bgpd/pfkey.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/pfkey.c b/usr.sbin/bgpd/pfkey.c
index 1017cc02dfc..80ca9722ce5 100644
--- a/usr.sbin/bgpd/pfkey.c
+++ b/usr.sbin/bgpd/pfkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkey.c,v 1.44 2015/02/10 05:18:39 claudio Exp $ */
+/* $OpenBSD: pfkey.c,v 1.45 2015/09/13 10:22:16 florian Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -464,14 +464,14 @@ pfkey_reply(int sd, u_int32_t *spip)
len = hdr.sadb_msg_len * PFKEY2_CHUNK;
if (read(sd, data, len) != len) {
log_warn("pfkey read");
- bzero(data, len);
+ explicit_bzero(data, len);
free(data);
return (-1);
}
if (hdr.sadb_msg_type == SADB_GETSPI) {
if (spip == NULL) {
- bzero(data, len);
+ explicit_bzero(data, len);
free(data);
return (0);
}
@@ -489,7 +489,7 @@ pfkey_reply(int sd, u_int32_t *spip)
}
}
}
- bzero(data, len);
+ explicit_bzero(data, len);
free(data);
return (0);
}