Skip to content

Commit

Permalink
FlowSpec NLRI parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiKE committed Dec 11, 2023
1 parent 7c1185b commit 79abe56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bgp/message/nlri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ impl<Octs: Octets> FlowSpecNlri<Octs> {
};
let pos = parser.pos();

if usize::from(len) != parser.remaining() {
if usize::from(len) > parser.remaining() {
return Err(ParseError::form_error(
"invalid length of FlowSpec NLRI"
));
Expand Down

0 comments on commit 79abe56

Please sign in to comment.