mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
smbd:process: use smbXsrv_client_create.
Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
0010dc81be
commit
a446966e71
@ -3902,10 +3902,12 @@ void smbd_process(struct tevent_context *ev_ctx,
|
||||
const char *remaddr = NULL;
|
||||
int ret;
|
||||
NTSTATUS status;
|
||||
struct timeval tv = timeval_current();
|
||||
NTTIME now = timeval_to_nttime(&tv);
|
||||
|
||||
client = talloc_zero(ev_ctx, struct smbXsrv_client);
|
||||
if (client == NULL) {
|
||||
DEBUG(0,("talloc_zero(struct smbXsrv_client)\n"));
|
||||
status = smbXsrv_client_create(ev_ctx, ev_ctx, msg_ctx, now, &client);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DBG_ERR("smbXsrv_client_create(): %s\n", nt_errstr(status));
|
||||
exit_server_cleanly("talloc_zero(struct smbXsrv_client).\n");
|
||||
}
|
||||
|
||||
@ -3914,9 +3916,6 @@ void smbd_process(struct tevent_context *ev_ctx,
|
||||
*/
|
||||
global_smbXsrv_client = client;
|
||||
|
||||
client->ev_ctx = ev_ctx;
|
||||
client->msg_ctx = msg_ctx;
|
||||
|
||||
sconn = talloc_zero(client, struct smbd_server_connection);
|
||||
if (sconn == NULL) {
|
||||
exit_server("failed to create smbd_server_connection");
|
||||
|
Loading…
x
Reference in New Issue
Block a user