Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
iptables: Backported Asus fix from 3626 for NAT loopback on MIPS devices
Browse files Browse the repository at this point in the history
  • Loading branch information
RMerl committed Nov 20, 2014
1 parent 35ebaf1 commit 1702a38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/src/router/iptables/ip6tables.c
Expand Up @@ -973,7 +973,7 @@ string_to_number_ll(const char *s, unsigned long long min, unsigned long long ma
/* Handle hex, octal, etc. */
errno = 0;
number = strtoull(s, &end, 0);
if (*end == '\0' && end != s) {
if ((*end == '\0' || *end == '/') && end != s) {
/* we parsed a number, let's see if we want this */
if (errno != ERANGE && min <= number && (!max || number <= max)) {
*ret = number;
Expand Down
2 changes: 1 addition & 1 deletion release/src/router/iptables/iptables.c
Expand Up @@ -1007,7 +1007,7 @@ string_to_number_ll(const char *s, unsigned long long min, unsigned long long ma
/* Handle hex, octal, etc. */
errno = 0;
number = strtoull(s, &end, 0);
if (*end == '\0' && end != s) {
if ((*end == '\0' || *end == '/') && end != s) {
/* we parsed a number, let's see if we want this */
if (errno != ERANGE && min <= number && (!max || number <= max)) {
*ret = number;
Expand Down

0 comments on commit 1702a38

Please sign in to comment.