Skip to content

Commit

Permalink
don't forget to print the PSN-ID when printing an LSP-ID
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes committed Jul 29, 2003
1 parent 91f7cb2 commit 424af66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions print-isoclns.c
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 424af66

Please sign in to comment.