Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/netkey Pull up rev 1.84 (requested by itojun in tic...
details: https://anonhg.NetBSD.org/src/rev/8b3dd14c73c1
branches: netbsd-1-6
changeset: 530541:8b3dd14c73c1
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Aug 11 19:27:23 2003 +0000
description:
Pull up rev 1.84 (requested by itojun in ticket #1384):
clear enc/auth key before freeing, for safety
diffstat:
sys/netkey/key.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r ce7896fbe87e -r 8b3dd14c73c1 sys/netkey/key.c
--- a/sys/netkey/key.c Mon Aug 11 19:12:47 2003 +0000
+++ b/sys/netkey/key.c Mon Aug 11 19:27:23 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.63.2.3 2003/08/11 19:12:47 msaitoh Exp $ */
+/* $NetBSD: key.c,v 1.63.2.4 2003/08/11 19:27:23 msaitoh Exp $ */
/* $KAME: key.c,v 1.234 2002/05/13 03:21:17 itojun Exp $ */
/*
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.63.2.3 2003/08/11 19:12:47 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.63.2.4 2003/08/11 19:27:23 msaitoh Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -2961,10 +2961,12 @@
sav->replay = NULL;
}
if (sav->key_auth != NULL) {
+ bzero(_KEYBUF(sav->key_auth), _KEYLEN(sav->key_auth));
KFREE(sav->key_auth);
sav->key_auth = NULL;
}
if (sav->key_enc != NULL) {
+ bzero(_KEYBUF(sav->key_enc), _KEYLEN(sav->key_enc));
KFREE(sav->key_enc);
sav->key_enc = NULL;
}
Home |
Main Index |
Thread Index |
Old Index