1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

r12710: Fix socket_wrapper: Make sure to fill in the socket family on the

returned address.

Andrew Bartlett
(This used to be commit 57b0aae0d4b52d9a9879c4606d2e4b3ef0d3d0d7)
This commit is contained in:
Andrew Bartlett 2006-01-04 05:40:35 +00:00 committed by Gerald (Jerry) Carter
parent 81e05038b6
commit c5a6c7f61c

View File

@ -160,6 +160,7 @@ static int convert_un_in(const struct sockaddr_un *un, struct sockaddr_in *in, s
return -1;
}
in->sin_family = AF_INET;
in->sin_addr.s_addr = htonl((127<<24) | iface);
in->sin_port = htons(prt);