]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pim.c
Add missing bounds checking to the DVMRP and PIM print routines.
[tcpdump] / print-pim.c
index 57d8f9f8f8a51fd80f59841d1cf16bc1f95d2166..aac29bc839b3ed1e0655e795eb46c59da11da7cf 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.39 2003-11-16 09:36:32 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.40 2003-11-19 09:42:05 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -154,6 +154,7 @@ pimv1_print(register const u_char *bp, register u_int len)
        if (bp >= ep)
                return;
 
+       TCHECK(bp[1]);
        type = bp[1];
 
        switch (type) {