]> 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:49:52 +0000 (03:49 +0000)
committerguy <guy>
Mon, 15 Dec 2003 03:49:52 +0000 (03:49 +0000)
byte of the LSP ID, not the first byte past the LSP ID.

print-isoclns.c

index ce3d4eea56951fa578fea6b24c6e0c5271ab29a8..a36faebcbd0410ca7749a9cfd9779c8e8e77529f 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.106.2.2 2003-11-16 08:51:29 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.106.2.3 2003-12-15 03:49:52 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -1831,7 +1831,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));