r9705: r9685@blu: tridge | 2005-08-27 19:43:44 +1000
authorAndrew Tridgell <tridge@samba.org>
Sun, 28 Aug 2005 02:37:49 +0000 (02:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:34:52 +0000 (13:34 -0500)
 set the backend_name on socket_accept() too
(This used to be commit 10ac2732881ac73dd9cb8162beb1efd741bfe3d2)

source4/lib/socket/socket.c
source4/lib/socket/socket_ipv4.c
source4/lib/socket/socket_ipv6.c
source4/lib/socket/socket_unix.c

index db249522a2960a62d19fe63800b1a85c7330c917..380071f46db9442da0ccf54c0e7c4bd350b2146c 100644 (file)
@@ -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)) {
index 9c393a77ec31c35f3fe091ecb019318bc0306171..34ae0b2b73ec08e2ffba92c7d8773008e7be0249 100644 (file)
@@ -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;
 }
index da3a69e81eaa260c1a1bbbe09a65d08829a58baf..ee3e1183495c3e19dd8b35f9a2570f5b3e2f572d 100644 (file)
@@ -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;
 }
index c5af48da0fa1ead76c88dd544e243b5e54acfe26..0c65bb46fb1e2302ee0f5e22f81113eb98f0d32d 100644 (file)
@@ -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;
 }