summaryrefslogtreecommitdiff
path: root/print-lwres.c
diff options
context:
space:
mode:
authorguy <guy>2001-02-09 05:16:48 +0000
committerguy <guy>2001-02-09 05:16:48 +0000
commit3307d22692b285b2f7958cb4fb6a56a1bfa38caf (patch)
tree4417ca1a99dd4d09b7a3cf53dd92ceb19ec942a9 /print-lwres.c
parentcbb769e118310cde158fdc05f1cc67bd057dbcb9 (diff)
downloadtcpdump-3307d22692b285b2f7958cb4fb6a56a1bfa38caf.tar.gz
Make sure "unsupported" is set before it's used.
Diffstat (limited to 'print-lwres.c')
-rw-r--r--print-lwres.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/print-lwres.c b/print-lwres.c
index 04aa7742..98628382 100644
--- a/print-lwres.c
+++ b/print-lwres.c
@@ -29,7 +29,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-lwres.c,v 1.3 2001-02-02 19:13:42 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-lwres.c,v 1.4 2001-02-09 05:16:48 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -308,7 +308,7 @@ lwres_print(register const u_char *bp, u_int length)
const char *s;
int response;
int advance;
- int unsupported;
+ int unsupported = 0;
np = (const struct lwres_lwpacket *)bp;
TCHECK(np->authlength);
@@ -323,7 +323,6 @@ lwres_print(register const u_char *bp, u_int length)
}
response = ntohs(np->pktflags) & LWRES_LWPACKETFLAG_RESPONSE;
- unsupported = 0;
/* opcode and pktflags */
v = (u_int32_t)ntohl(np->opcode);