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,