From 10ac2732881ac73dd9cb8162beb1efd741bfe3d2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 28 Aug 2005 02:37:49 +0000 Subject: [PATCH] r9705: r9685@blu: tridge | 2005-08-27 19:43:44 +1000 set the backend_name on socket_accept() too --- source/lib/socket/socket.c | 1 + source/lib/socket/socket_ipv4.c | 1 + source/lib/socket/socket_ipv6.c | 1 + source/lib/socket/socket_unix.c | 1 + 4 files changed, 4 insertions(+) diff --git a/source/lib/socket/socket.c b/source/lib/socket/socket.c index db249522a29..380071f46db 100644 --- a/source/lib/socket/socket.c +++ b/source/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/source/lib/socket/socket_ipv4.c b/source/lib/socket/socket_ipv4.c index 9c393a77ec3..34ae0b2b73e 100644 --- a/source/lib/socket/socket_ipv4.c +++ b/source/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/source/lib/socket/socket_ipv6.c b/source/lib/socket/socket_ipv6.c index da3a69e81ea..ee3e1183495 100644 --- a/source/lib/socket/socket_ipv6.c +++ b/source/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/source/lib/socket/socket_unix.c b/source/lib/socket/socket_unix.c index c5af48da0fa..0c65bb46fb1 100644 --- a/source/lib/socket/socket_unix.c +++ b/source/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; } -- 2.34.1