diff options
author | guy <guy> | 2001-02-09 05:16:48 +0000 |
---|---|---|
committer | guy <guy> | 2001-02-09 05:16:48 +0000 |
commit | 3307d22692b285b2f7958cb4fb6a56a1bfa38caf (patch) | |
tree | 4417ca1a99dd4d09b7a3cf53dd92ceb19ec942a9 | |
parent | cbb769e118310cde158fdc05f1cc67bd057dbcb9 (diff) | |
download | tcpdump-3307d22692b285b2f7958cb4fb6a56a1bfa38caf.tar.gz |
Make sure "unsupported" is set before it's used.
-rw-r--r-- | print-lwres.c | 5 |
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); |