Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170784792
D3038.id6818.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
427 B
Referenced Files
None
Subscribers
None
D3038.id6818.diff
View Options
Index: sys/kern/uipc_usrreq.c
===================================================================
--- sys/kern/uipc_usrreq.c
+++ sys/kern/uipc_usrreq.c
@@ -736,8 +736,10 @@
UNP_PCB_LOCK(unp);
if (unp->unp_vnode == NULL) {
+ /* Already connected or not bound to an address. */
+ error = unp->unp_conn != NULL ? EINVAL : EDESTADDRREQ;
UNP_PCB_UNLOCK(unp);
- return (EINVAL);
+ return (error);
}
SOCK_LOCK(so);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 7, 3:01 PM (11 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38472783
Default Alt Text
D3038.id6818.diff (427 B)
Attached To
Mode
D3038: Let listen() return EDESTADDRREQ when not bound.
Attached
Detach File
Event Timeline
Log In to Comment