Skip to content

Commit

Permalink
Fix handling of integer validation in FRR so it works on ARM, which a…
Browse files Browse the repository at this point in the history
…llows BGP to function properly.

See Netgate issue #357

(cherry picked from commit 3c6ee3f)
  • Loading branch information
jim-p committed Nov 21, 2017
1 parent 5f0eddc commit 749d69c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion net/pfSense-pkg-frr/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $FreeBSD$

PORTNAME= pfSense-pkg-frr
PORTVERSION= 0.0.5
PORTVERSION= 0.0.6
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ function frr_validate_asnum($value) {
}

function frr_validate_intrange($value, $min, $max) {
return filter_var($value, FILTER_VALIDATE_INT,
array('options' => array('min_range' => $min, 'max_range' => $max)));
if (is_numericint($value) && ($value >= $min) && ($value <= $max)) {
return $value;
} else {
return null;
}
}

function frr_validate_community_asval_list($arr) {
Expand Down

0 comments on commit 749d69c

Please sign in to comment.