[1/2] server: Add a missing socket protocol attribution

Bruno Jesus 00cpxxx at gmail.com
Tue Nov 11 20:42:11 CST 2014


The new socket has to inherit the information just like family and type.
-------------- next part --------------
diff --git a/server/sock.c b/server/sock.c
index 4adad0f..e124ad6 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -773,6 +773,7 @@ static int accept_into_socket( struct sock *sock, struct sock *acceptsock )
     acceptsock->hmask   = 0;
     acceptsock->pmask   = 0;
     acceptsock->polling = 0;
+    acceptsock->proto   = sock->proto;
     acceptsock->type    = sock->type;
     acceptsock->family  = sock->family;
     acceptsock->wparam  = 0;


More information about the wine-patches mailing list