From 1ef362c89d98777651c8789af4b74a0a6fb9fcdc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 28 Aug 2005 02:37:49 +0000 Subject: r9705: r9685@blu: tridge | 2005-08-27 19:43:44 +1000 set the backend_name on socket_accept() too (This used to be commit 10ac2732881ac73dd9cb8162beb1efd741bfe3d2) --- source4/lib/socket/socket.c | 1 + source4/lib/socket/socket_ipv4.c | 1 + source4/lib/socket/socket_ipv6.c | 1 + source4/lib/socket/socket_unix.c | 1 + 4 files changed, 4 insertions(+) (limited to 'source4') diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c index db249522a2..380071f46d 100644 --- a/source4/lib/socket/socket.c +++ b/source4/lib/socket/socket.c @@ -53,6 +53,7 @@ static NTSTATUS socket_create_with_ops(TALLOC_CTX *mem_ctx, const struct socket_ (*new_sock)->private_data = NULL; (*new_sock)->ops = ops; + (*new_sock)->backend_name = NULL; status = (*new_sock)->ops->fn_init((*new_sock)); if (!NT_STATUS_IS_OK(status)) { diff --git a/source4/lib/socket/socket_ipv4.c b/source4/lib/socket/socket_ipv4.c index 9c393a77ec..34ae0b2b73 100644 --- a/source4/lib/socket/socket_ipv4.c +++ b/source4/lib/socket/socket_ipv4.c @@ -226,6 +226,7 @@ static NTSTATUS ipv4_accept(struct socket_context *sock, struct socket_context * (*new_sock)->private_data = NULL; (*new_sock)->ops = sock->ops; + (*new_sock)->backend_name = sock->backend_name; return NT_STATUS_OK; } diff --git a/source4/lib/socket/socket_ipv6.c b/source4/lib/socket/socket_ipv6.c index da3a69e81e..ee3e118349 100644 --- a/source4/lib/socket/socket_ipv6.c +++ b/source4/lib/socket/socket_ipv6.c @@ -203,6 +203,7 @@ static NTSTATUS ipv6_tcp_accept(struct socket_context *sock, struct socket_conte (*new_sock)->private_data = NULL; (*new_sock)->ops = sock->ops; + (*new_sock)->backend_name = sock->backend_name; return NT_STATUS_OK; } diff --git a/source4/lib/socket/socket_unix.c b/source4/lib/socket/socket_unix.c index c5af48da0f..0c65bb46fb 100644 --- a/source4/lib/socket/socket_unix.c +++ b/source4/lib/socket/socket_unix.c @@ -200,6 +200,7 @@ static NTSTATUS unixdom_accept(struct socket_context *sock, (*new_sock)->private_data = NULL; (*new_sock)->ops = sock->ops; + (*new_sock)->backend_name = sock->backend_name; return NT_STATUS_OK; } -- cgit