DragonFly BSD
DragonFly submit List (threaded) for 2006-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

netproto/key/key.c warning patch


From: Alexey Slynko <slynko@xxxxxxxxx>
Date: Wed, 18 Jan 2006 20:21:48 +0300

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))


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]