Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57156
b: refs/heads/master
c: 83f03fa
h: refs/heads/master
v: v3
  • Loading branch information
Jerome Borsboom authored and David S. Miller committed May 31, 2007
1 parent abca7a3 commit 79ffda8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ebba6d14f8d63cad583bf1cc0330b601d5a8171
refs/heads/master: 83f03fa5adbad0a829424241ad24ef9e4b4ba585
6 changes: 3 additions & 3 deletions trunk/net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ int in4_pton(const char *src, int srclen,
while(1) {
int c;
c = xdigit2bin(srclen > 0 ? *s : '\0', delim);
if (!(c & (IN6PTON_DIGIT | IN6PTON_DOT | IN6PTON_DELIM))) {
if (!(c & (IN6PTON_DIGIT | IN6PTON_DOT | IN6PTON_DELIM | IN6PTON_COLON_MASK))) {
goto out;
}
if (c & (IN6PTON_DOT | IN6PTON_DELIM)) {
if (c & (IN6PTON_DOT | IN6PTON_DELIM | IN6PTON_COLON_MASK)) {
if (w == 0)
goto out;
*d++ = w & 0xff;
w = 0;
i++;
if (c & IN6PTON_DELIM) {
if (c & (IN6PTON_DELIM | IN6PTON_COLON_MASK)) {
if (i != 4)
goto out;
break;
Expand Down

0 comments on commit 79ffda8

Please sign in to comment.