Page MenuHomeFreeBSD

D12575.id33653.diff
No OneTemporary

D12575.id33653.diff

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

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)

Event Timeline