Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dist/pf/net fix an uninitialised variable problem. larg...
details: https://anonhg.NetBSD.org/src/rev/441efb5f4cbd
branches: trunk
changeset: 766734:441efb5f4cbd
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Jul 01 02:33:23 2011 +0000
description:
fix an uninitialised variable problem. large-ish function, but i
couldn't see how GCC 4.5 isn't wrong about this one.
diffstat:
sys/dist/pf/net/pf_norm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4d468331665a -r 441efb5f4cbd sys/dist/pf/net/pf_norm.c
--- a/sys/dist/pf/net/pf_norm.c Fri Jul 01 02:24:14 2011 +0000
+++ b/sys/dist/pf/net/pf_norm.c Fri Jul 01 02:33:23 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index