Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106348971
D24831.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
454 B
Referenced Files
None
Subscribers
None
D24831.diff
View Options
Index: head/sys/netinet/tcp_usrreq.c
===================================================================
--- head/sys/netinet/tcp_usrreq.c
+++ head/sys/netinet/tcp_usrreq.c
@@ -1037,6 +1037,12 @@
error = EINVAL;
goto out;
}
+ if ((inp->inp_vflag & INP_IPV6PROTO) == 0) {
+ if (m != NULL)
+ m_freem(m);
+ error = EAFNOSUPPORT;
+ goto out;
+ }
if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) {
if (m)
m_freem(m);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 30, 3:19 AM (7 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15634696
Default Alt Text
D24831.diff (454 B)
Attached To
Mode
D24831: Allow only IPv4 addresses in sendto() for TCP on AF_INET sockets
Attached
Detach File
Event Timeline
Log In to Comment