Page MenuHomeFreeBSD

D12575.diff
No OneTemporary

D12575.diff

Index: head/sys/kern/kern_sendfile.c
===================================================================
--- head/sys/kern/kern_sendfile.c
+++ head/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

Mime Type
text/plain
Expires
Sun, Dec 15, 2:19 PM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091702
Default Alt Text
D12575.diff (462 B)

Event Timeline