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:
parent
395289a30a
commit
8821967bd6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue