]> The Tcpdump Group git mirrors - tcpdump/commitdiff
don't forget to print the PSN-ID when printing an LSP-ID
authorhannes <hannes>
Tue, 29 Jul 2003 09:21:16 +0000 (09:21 +0000)
committerhannes <hannes>
Tue, 29 Jul 2003 09:21:16 +0000 (09:21 +0000)
print-isoclns.c

index bee1240006435621b82e33e95df5ad664c895f2a..f2c651e8d27a70ca9de6db9297935abe2ada3be4 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.92 2003-07-19 09:02:45 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.93 2003-07-29 09:21:16 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -700,7 +700,7 @@ isis_print_id(const u_int8_t *cp, int id_len)
        if (i == 2 || i == 4)
            *pos++ = '.';
        }
-    if (id_len == NODE_ID_LEN) {
+    if (id_len >= NODE_ID_LEN) {
         sprintf(pos, ".%02x", *cp++);
        pos += strlen(pos);
     }