From 27b01d0aa362b3b226696b9ab7df855fe6fd1ab9 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Mon, 30 Sep 2019 23:33:09 +0200 Subject: [PATCH] tstream_npa: Set local server name in auth requests Signed-off-by: Samuel Cabrero Reviewed-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- libcli/named_pipe_auth/npa_tstream.c | 3 ++- libcli/named_pipe_auth/npa_tstream.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libcli/named_pipe_auth/npa_tstream.c b/libcli/named_pipe_auth/npa_tstream.c index 8fc03371a50..bc9d1ecb187 100644 --- a/libcli/named_pipe_auth/npa_tstream.c +++ b/libcli/named_pipe_auth/npa_tstream.c @@ -63,7 +63,7 @@ struct tevent_req *tstream_npa_connect_send(TALLOC_CTX *mem_ctx, const struct tsocket_address *remote_client_addr, const char *remote_client_name_in, const struct tsocket_address *local_server_addr, - const char *local_server_name, + const char *local_server_name_in, const struct auth_session_info_transport *session_info) { struct tevent_req *req; @@ -134,6 +134,7 @@ struct tevent_req *tstream_npa_connect_send(TALLOC_CTX *mem_ctx, info4->remote_client_name = info4->remote_client_addr; } + info4->local_server_name = local_server_name_in; info4->local_server_addr = tsocket_address_inet_addr_string(local_server_addr, state); if (!info4->local_server_addr) { diff --git a/libcli/named_pipe_auth/npa_tstream.h b/libcli/named_pipe_auth/npa_tstream.h index 261fe2b5dfb..b7d11dea6d3 100644 --- a/libcli/named_pipe_auth/npa_tstream.h +++ b/libcli/named_pipe_auth/npa_tstream.h @@ -32,7 +32,7 @@ struct tevent_req *tstream_npa_connect_send(TALLOC_CTX *mem_ctx, const struct tsocket_address *remote_client_addr, const char *remote_client_name_in, const struct tsocket_address *local_server_addr, - const char *local_server_name, + const char *local_server_name_in, const struct auth_session_info_transport *session_info); int _tstream_npa_connect_recv(struct tevent_req *req, int *perrno,