diff options
author | 2011-01-11 15:42:04 +0000 | |
---|---|---|
committer | 2011-01-11 15:42:04 +0000 | |
commit | fa2d22af3ed7b4b48a63402f5cb526eb6ced1ab4 (patch) | |
tree | b2724ed927d0bcbf6c055671820144e4dbbf9358 /sys/netinet/tcp_subr.c | |
parent | all the devices output same types of data (diff) | |
download | wireguard-openbsd-fa2d22af3ed7b4b48a63402f5cb526eb6ced1ab4.tar.xz wireguard-openbsd-fa2d22af3ed7b4b48a63402f5cb526eb6ced1ab4.zip |
for key material that is being being discarded, convert bzero() to
explicit_bzero() where required
ok markus mikeb
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 3d04fac05ef..2f10358d2f2 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_subr.c,v 1.111 2010/07/03 04:44:51 guenther Exp $ */ +/* $OpenBSD: tcp_subr.c,v 1.112 2011/01/11 15:42:05 deraadt Exp $ */ /* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */ /* @@ -1041,7 +1041,7 @@ tcp_signature_tdb_zeroize(tdbp) struct tdb *tdbp; { if (tdbp->tdb_amxkey) { - bzero(tdbp->tdb_amxkey, tdbp->tdb_amxkeylen); + explicit_bzero(tdbp->tdb_amxkey, tdbp->tdb_amxkeylen); free(tdbp->tdb_amxkey, M_XDATA); tdbp->tdb_amxkey = NULL; } |