]> The Tcpdump Group git mirrors - tcpdump/commitdiff
do not bail if we hit a zero-length TLV, continue to read the next TLV header instead.
authorhannes <hannes>
Fri, 16 Jun 2006 18:08:35 +0000 (18:08 +0000)
committerhannes <hannes>
Fri, 16 Jun 2006 18:08:35 +0000 (18:08 +0000)
print-isoclns.c

index 81bbab16679bfcf4acd513edf8d3286e6028fe98..394e46daf793eb96c2f995f685813cbf610d6ab4 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.159 2006-05-12 02:10:21 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.160 2006-06-16 18:08:35 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -2144,7 +2144,7 @@ static int isis_print (const u_int8_t *p, u_int length)
                tlv_len);
 
         if (tlv_len == 0) /* something is malformed */
-            break;
+           continue;
 
         /* now check if we have a decoder otherwise do a hexdump at the end*/
        switch (tlv_type) {