]> 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:22:56 +0000 (18:22 +0000)
committerhannes <hannes>
Fri, 16 Jun 2006 18:22:56 +0000 (18:22 +0000)
print-isoclns.c

index baab51f8381109910de84ad32729105a540f06ed..fef9a8e0790f22d5aec6dda2b330e7aac9a789e3 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.133.2.22 2006-04-06 13:44:19 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.133.2.23 2006-06-16 18:22:56 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -2108,7 +2108,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) {