summaryrefslogtreecommitdiff
path: root/source4/lib/socket
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-28 02:37:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:52 -0500
commit1ef362c89d98777651c8789af4b74a0a6fb9fcdc (patch)
tree2f6a27142dc26edc6000ebc0032ed26199637ce1 /source4/lib/socket
parent75c29073ce12723598e4e204ccb616cd52fa2c13 (diff)
downloadsamba-1ef362c89d98777651c8789af4b74a0a6fb9fcdc.tar.gz
samba-1ef362c89d98777651c8789af4b74a0a6fb9fcdc.tar.bz2
samba-1ef362c89d98777651c8789af4b74a0a6fb9fcdc.zip
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)
Diffstat (limited to 'source4/lib/socket')
-rw-r--r--source4/lib/socket/socket.c1
-rw-r--r--source4/lib/socket/socket_ipv4.c1
-rw-r--r--source4/lib/socket/socket_ipv6.c1
-rw-r--r--source4/lib/socket/socket_unix.c1
4 files changed, 4 insertions, 0 deletions
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;
}