Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81970304
D12575.id33653.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
447 B
Referenced Files
None
Subscribers
None
D12575.id33653.diff
View Options
Index: sys/kern/kern_sendfile.c
===================================================================
--- sys/kern/kern_sendfile.c
+++ sys/kern/kern_sendfile.c
@@ -514,6 +514,11 @@
*so = (*sock_fp)->f_data;
if ((*so)->so_type != SOCK_STREAM)
return (EINVAL);
+ if ((*so)->so_error) {
+ error = (*so)->so_error;
+ (*so)->so_error = 0;
+ return (error);
+ }
if (((*so)->so_state & SS_ISCONNECTED) == 0)
return (ENOTCONN);
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 15, 4:59 PM (19 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091791
Default Alt Text
D12575.id33653.diff (447 B)
Attached To
Mode
D12575: Check so_error early in sendfile() call
Attached
Detach File
Event Timeline
Log In to Comment