Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177882230
D12583.1795506709.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
710 B
Referenced Files
None
Subscribers
None
D12583.1795506709.diff
View Options
Index: sys/kern/uipc_socket.c
===================================================================
--- sys/kern/uipc_socket.c
+++ sys/kern/uipc_socket.c
@@ -1471,17 +1471,17 @@
restart:
do {
SOCKBUF_LOCK(&so->so_snd);
- if (so->so_snd.sb_state & SBS_CANTSENDMORE) {
- SOCKBUF_UNLOCK(&so->so_snd);
- error = EPIPE;
- goto release;
- }
if (so->so_error) {
error = so->so_error;
so->so_error = 0;
SOCKBUF_UNLOCK(&so->so_snd);
goto release;
}
+ if (so->so_snd.sb_state & SBS_CANTSENDMORE) {
+ SOCKBUF_UNLOCK(&so->so_snd);
+ error = EPIPE;
+ goto release;
+ }
if ((so->so_state & SS_ISCONNECTED) == 0) {
/*
* `sendto' and `sendmsg' is allowed on a connection-
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 24, 7:51 AM (33 m, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41950261
Default Alt Text
D12583.1795506709.diff (710 B)
Attached To
Mode
D12583: check so_error earlier in sosend_generic
Attached
Detach File
Event Timeline