summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2015-09-13 10:22:17 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2015-09-13 10:22:17 +0000
commit27f904edeec9422a0b335ebc14e385df341171ae (patch)
treebada15c421aa75cbac84dbb3f9cf49abf61b3b7c /usr.sbin/bgpd
parentb2a53b50d07dd84c514878e37df9276ebfe014c3 (diff)
explicit_bzero() from Michael McConville, thanks!
OK claudio
Diffstat (limited to 'usr.sbin/bgpd')
-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);
}