diff options
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index efc06ad25..80f869a25 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -2867,6 +2867,7 @@ socketpair (int family, int type, int protocol, int *sb) if (sb0 >= 0 && fdsock (sb0, dev, insock)) { ((fhandler_socket *) sb0)->set_sun_path (""); + ((fhandler_socket *) sb0)->set_peer_sun_path (""); ((fhandler_socket *) sb0)->set_addr_family (family); ((fhandler_socket *) sb0)->set_socket_type (type); ((fhandler_socket *) sb0)->connect_state (connected); @@ -2878,6 +2879,7 @@ socketpair (int family, int type, int protocol, int *sb) if (sb1 >= 0 && fdsock (sb1, dev, outsock)) { ((fhandler_socket *) sb1)->set_sun_path (""); + ((fhandler_socket *) sb1)->set_peer_sun_path (""); ((fhandler_socket *) sb1)->set_addr_family (family); ((fhandler_socket *) sb1)->set_socket_type (type); ((fhandler_socket *) sb1)->connect_state (connected); |