diff options
-rw-r--r-- | epan/dissectors/packet-bgp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c index 7c1f49bf3c..6437e324c2 100644 --- a/epan/dissectors/packet-bgp.c +++ b/epan/dissectors/packet-bgp.c @@ -2577,7 +2577,7 @@ decode_flowspec_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, guint16 afi, if (tot_flow_len >= 240) { len_16 = tvb_get_ntohs(tvb, offset); - tot_flow_len = len_16 >> 4; /* move 4 bits to the right to remove first f */ + tot_flow_len = len_16 & 0x0FFF; /* remove most significant nibble */ offset_len = 2; } else { offset_len = 1; |