Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netkey fixed uninitialized variable
details: https://anonhg.NetBSD.org/src/rev/d77cfbb1bba0
branches: trunk
changeset: 554080:d77cfbb1bba0
user: christos <christos%NetBSD.org@localhost>
date: Sat Oct 25 08:27:12 2003 +0000
description:
fixed uninitialized variable
diffstat:
sys/netkey/key.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r aa2c81d8624e -r d77cfbb1bba0 sys/netkey/key.c
--- a/sys/netkey/key.c Sat Oct 25 08:26:14 2003 +0000
+++ b/sys/netkey/key.c Sat Oct 25 08:27:12 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.102 2003/10/13 08:55:59 itojun Exp $ */
+/* $NetBSD: key.c,v 1.103 2003/10/25 08:27:12 christos Exp $ */
/* $KAME: key.c,v 1.310 2003/09/08 02:23:44 itojun Exp $ */
/*
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.102 2003/10/13 08:55:59 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.103 2003/10/25 08:27:12 christos Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -1680,6 +1680,9 @@
/* tag refcnt++ */
newsp = key_getspbytag(tagvalue, xpl0->sadb_x_policy_dir);
}
+#else
+ else
+ newsp = NULL;
#endif
if (newsp && (newsp->readonly || newsp->persist)) {
Home |
Main Index |
Thread Index |
Old Index