mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
r9705: r9685@blu: tridge | 2005-08-27 19:43:44 +1000
set the backend_name on socket_accept() too
(This used to be commit 10ac273288
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
75c29073ce
commit
1ef362c89d
@ -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)) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user