FreeBSD Bugzilla – Attachment 217966 Details for
Bug 249327
fix IP address parsing in netgraph eating too many characters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Suggested fix for ng_parse.c
ng_parse.diff (text/plain), 506 bytes, created by
Markus Stoff
on 2020-09-15 05:59:08 UTC
(
hide
)
Description:
Suggested fix for ng_parse.c
Filename:
MIME Type:
Creator:
Markus Stoff
Created:
2020-09-15 05:59:08 UTC
Size:
506 bytes
patch
obsolete
>Index: sys/netgraph/ng_parse.c >=================================================================== >--- sys/netgraph/ng_parse.c (revision 365652) >+++ sys/netgraph/ng_parse.c (working copy) >@@ -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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249327
: 217966