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

Commit

Permalink
iptables: Re-enable Asus fix for NAT loopback.
Browse files Browse the repository at this point in the history
Re-enable fix from commit 1702a38.
  • Loading branch information
kevinxucs committed Jan 28, 2015
1 parent 19293d9 commit b08a5f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions release/src/router/iptables/ip6tables.c
Expand Up @@ -973,8 +973,8 @@ 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 == '/') && end != s) {
if (*end == '\0' && end != s) {
if ((*end == '\0' || *end == '/') && end != s) {
//if (*end == '\0' && 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
4 changes: 2 additions & 2 deletions release/src/router/iptables/iptables.c
Expand Up @@ -1007,8 +1007,8 @@ 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 == '/') && end != s) {
if (*end == '\0' && end != s) {
if ((*end == '\0' || *end == '/') && end != s) {
//if (*end == '\0' && 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 b08a5f4

Please sign in to comment.