We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc4bcf commit 6e4e82fCopy full SHA for 6e4e82f
test/dnet/aton.c
@@ -86,7 +86,7 @@ off_aton(char *string, uint16_t *off)
86
} else {
87
i = strtol(string, &p, 10);
88
if (*string == '\0' || (*p != '\0' && *p != '+') ||
89
- i > IP_OFFMASK)
+ i > (IP_OFFMASK << 3))
90
return (-1);
91
*off = htons(((*p == '+') ? IP_MF : 0) | (i >> 3));
92
}
0 commit comments