Skip to content

Commit 5906d35

Browse files
committed
Merge branch 'devel'
2 parents 1e33926 + 6e4e82f commit 5906d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/dnet/aton.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ off_aton(char *string, uint16_t *off)
8686
} else {
8787
i = strtol(string, &p, 10);
8888
if (*string == '\0' || (*p != '\0' && *p != '+') ||
89-
i > IP_OFFMASK)
89+
i > (IP_OFFMASK << 3))
9090
return (-1);
9191
*off = htons(((*p == '+') ? IP_MF : 0) | (i >> 3));
9292
}

0 commit comments

Comments
 (0)