Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132530263
D10941.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
654 B
Referenced Files
None
Subscribers
None
D10941.id.diff
View Options
Index: head/sys/netinet6/icmp6.c
===================================================================
--- head/sys/netinet6/icmp6.c
+++ head/sys/netinet6/icmp6.c
@@ -597,9 +597,9 @@
sizeof(*nicmp6));
noff = off;
}
- nicmp6->icmp6_type = ICMP6_ECHO_REPLY;
- nicmp6->icmp6_code = 0;
if (n) {
+ nicmp6->icmp6_type = ICMP6_ECHO_REPLY;
+ nicmp6->icmp6_code = 0;
ICMP6STAT_INC(icp6s_reflect);
ICMP6STAT_INC(icp6s_outhist[ICMP6_ECHO_REPLY]);
icmp6_reflect(n, noff);
@@ -689,6 +689,7 @@
*/
m_free(n);
n = NULL;
+ break;
}
maxhlen = M_TRAILINGSPACE(n) -
(sizeof(*nip6) + sizeof(*nicmp6) + 4);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 18, 5:33 PM (2 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23873276
Default Alt Text
D10941.id.diff (654 B)
Attached To
Mode
D10941: Static analysis: Fix potential NULL dereference in ICMP6 code
Attached
Detach File
Event Timeline
Log In to Comment