netproto/key/key.c warning patch

Alexey Slynko slynko at tronet.ru
Wed Jan 18 09:23:18 PST 2006


Hi,

1) Fix unitizlized value
Index: /usr/src1/sys/netproto/key/key.c
===================================================================
RCS file: /mnt/share/dragonfly-cvs/src/sys/netproto/key/key.c,v
retrieving revision 1.14
diff -u -r1.14 key.c
--- /usr/src1/sys/netproto/key/key.c	14 Jan 2006 13:36:40 -0000	1.14
+++ /usr/src1/sys/netproto/key/key.c	18 Jan 2006 12:57:46 -0000
@@ -7019,7 +7019,7 @@
 {
 	const struct sockaddr *sa;
 	enum { NONE, ADDR } checktype = NONE;
-	int baselen;
+	int baselen = 0;
 	const int sal = offsetof(struct sockaddr, sa_len) + sizeof(sa->sa_len);
 
 	if (len != PFKEY_UNUNIT64(ext->sadb_ext_len))




More information about the Submit mailing list