]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Make sure "unsupported" is set before it's used.
authorguy <guy>
Fri, 9 Feb 2001 05:16:48 +0000 (05:16 +0000)
committerguy <guy>
Fri, 9 Feb 2001 05:16:48 +0000 (05:16 +0000)
print-lwres.c

index 04aa774217c61e276ed7c5e4ad9340de9653a4fe..9862838292619426022ede85aae937d5b0994328 100644 (file)
@@ -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);