server: Add a missing socket protocol attribution.

The new socket has to inherit the information just like family and type.
This commit is contained in:
Bruno Jesus 2014-11-12 00:42:11 -02:00 committed by Alexandre Julliard
parent 395289a30a
commit 8821967bd6

View file

@ -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;