Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103995823
D22140.id82459.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
774 B
Referenced Files
None
Subscribers
None
D22140.id82459.diff
View Options
diff --git a/sys/netgraph/ng_tag.c b/sys/netgraph/ng_tag.c
--- a/sys/netgraph/ng_tag.c
+++ b/sys/netgraph/ng_tag.c
@@ -363,9 +363,8 @@
hook_p hook;
/* Sanity check. */
- if (msg->header.arglen < sizeof(*hp)
- || msg->header.arglen !=
- NG_TAG_HOOKIN_SIZE(hp->tag_len))
+ if (msg->header.arglen < sizeof(*hp) ||
+ msg->header.arglen < NG_TAG_HOOKIN_SIZE(hp->tag_len))
ERROUT(EINVAL);
/* Find hook. */
@@ -385,9 +384,8 @@
hook_p hook;
/* Sanity check. */
- if (msg->header.arglen < sizeof(*hp)
- || msg->header.arglen !=
- NG_TAG_HOOKOUT_SIZE(hp->tag_len))
+ if (msg->header.arglen < sizeof(*hp) ||
+ msg->header.arglen < NG_TAG_HOOKOUT_SIZE(hp->tag_len))
ERROUT(EINVAL);
/* Find hook. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 4:24 AM (21 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15000530
Default Alt Text
D22140.id82459.diff (774 B)
Attached To
Mode
D22140: netgraph/ng_tag: Variable length data can not be set for all length
Attached
Detach File
Event Timeline
Log In to Comment