Module Name:    src
Committed By:   mrg
Date:           Fri Jul  1 02:33:23 UTC 2011

Modified Files:
        src/sys/dist/pf/net: pf_norm.c

Log Message:
fix an uninitialised variable problem.  large-ish function, but i
couldn't see how GCC 4.5 isn't wrong about this one.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dist/pf/net/pf_norm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dist/pf/net/pf_norm.c
diff -u src/sys/dist/pf/net/pf_norm.c:1.23 src/sys/dist/pf/net/pf_norm.c:1.24
--- src/sys/dist/pf/net/pf_norm.c:1.23	Fri Nov  5 01:35:58 2010
+++ src/sys/dist/pf/net/pf_norm.c	Fri Jul  1 02:33:23 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pf_norm.c,v 1.23 2010/11/05 01:35:58 rmind Exp $	*/
+/*	$NetBSD: pf_norm.c,v 1.24 2011/07/01 02:33:23 mrg Exp $	*/
 /*	$OpenBSD: pf_norm.c,v 1.109 2007/05/28 17:16:39 henning Exp $ */
 
 /*
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pf_norm.c,v 1.23 2010/11/05 01:35:58 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pf_norm.c,v 1.24 2011/07/01 02:33:23 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1487,7 +1487,7 @@
     struct pf_state_peer *src, struct pf_state_peer *dst, int *writeback)
 {
 	struct timeval uptime;
-	u_int32_t tsval, tsecr;
+	u_int32_t tsval = 0, tsecr = 0;
 	u_int tsval_from_last;
 	u_int8_t hdr[60];
 	u_int8_t *opt;

Reply via email to