Skip to content

Commit

Permalink
Fix AS range check
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Mar 30, 2024
1 parent 2553d3e commit e7cac3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libnfdump/filter/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ static int AddVlanNumber(direction_t direction, uint64_t num) {
} // End of AddVlanNumber

static int AddAsNumber(direction_t direction, uint16_t comp, uint64_t as) {
if (as < 0 || as > 65535 ) {
if (as > UINT32_MAX ) {
yyerror("AS number of range");
return -1;
}
Expand Down

0 comments on commit e7cac3e

Please sign in to comment.