diff options
Diffstat (limited to 'epan/dissectors/packet-isis-lsp.c')
-rw-r--r-- | epan/dissectors/packet-isis-lsp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/dissectors/packet-isis-lsp.c b/epan/dissectors/packet-isis-lsp.c index cdb778814f..6dc70c1053 100644 --- a/epan/dissectors/packet-isis-lsp.c +++ b/epan/dissectors/packet-isis-lsp.c @@ -994,10 +994,7 @@ dissect_isis_rt_capable_clv(tvbuff_t *tvb, offset = offset + 5; while (length>1) { - /* length can only be a multiple of 2, otherwise there is - something broken -> so decode down until length is 1 */ - if (length!=1) { - /* fetch two bytes */ + /* fetch two bytes */ rt_block = tvb_get_ntohs(tvb, offset); /* Mask out the lower 8 bits */ @@ -1276,7 +1273,6 @@ dissect_isis_rt_capable_clv(tvbuff_t *tvb, offset = offset+1+(tvb_get_guint8(tvb, offset)); break; } - } } } |