]> The Tcpdump Group git mirrors - tcpdump/commitdiff
When checking to make sure the LSP ID is all present, check the last
authorguy <guy>
Mon, 15 Dec 2003 03:42:48 +0000 (03:42 +0000)
committerguy <guy>
Mon, 15 Dec 2003 03:42:48 +0000 (03:42 +0000)
byte of the LSP ID, not the first byte past the LSP ID.

print-isoclns.c

index ab1000d7453d367cf9c963542acc520abf228a9b..b12050a9aca506fdf3fb235c9df728a6b5e91e47 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.110 2003-11-30 00:19:21 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.111 2003-12-15 03:42:48 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -1835,7 +1835,7 @@ static int isis_print (const u_int8_t *p, u_int length)
        case TLV_LSP:
            tlv_lsp = (const struct isis_tlv_lsp *)tptr;
            while(tmp>0) {
-               if (!TTEST((tlv_lsp->lsp_id)[LSP_ID_LEN]))
+               if (!TTEST((tlv_lsp->lsp_id)[LSP_ID_LEN-1]))
                    goto trunctlv;
                printf("\n\t      lsp-id: %s",
                        isis_print_id(tlv_lsp->lsp_id, LSP_ID_LEN));