Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F138007994
D26489.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
442 B
Referenced Files
None
Subscribers
None
D26489.diff
View Options
diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c
--- a/sys/netgraph/ng_parse.c
+++ b/sys/netgraph/ng_parse.c
@@ -960,9 +960,11 @@
if ((error = ng_int8_parse(&ng_parse_int8_type,
s, off, start, buf + i, buflen)) != 0)
return (error);
- if (i < 3 && s[*off] != '.')
- return (EINVAL);
- (*off)++;
+ if (i < 3) {
+ if (s[*off] != '.')
+ return (EINVAL);
+ (*off)++;
+ }
}
*buflen = 4;
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 29, 2:30 AM (16 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26314572
Default Alt Text
D26489.diff (442 B)
Attached To
Mode
D26489: IP address parsing in netgraph eating too many characters
Attached
Detach File
Event Timeline
Log In to Comment