From: Volker Lendecke Date: Tue, 29 Oct 2024 07:57:53 +0000 (+0100) Subject: libcli4: Call map_netlogon_samlogon_response directly X-Git-Tag: tdb-1.4.13~610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc9810051e6c4ae46c0b8c661450a378ba8f4f37;p=thirdparty%2Fsamba.git libcli4: Call map_netlogon_samlogon_response directly Avoid using a boolean flag passed down Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c index b385b1c5b9f..52784616769 100644 --- a/source4/libcli/finddcs_cldap.c +++ b/source4/libcli/finddcs_cldap.c @@ -308,7 +308,6 @@ static void finddcs_cldap_next_server(struct finddcs_cldap_state *state) NETLOGON_NT_VERSION_5 | NETLOGON_NT_VERSION_5EX | NETLOGON_NT_VERSION_IP; - state->netlogon->in.map_response = true; DEBUG(4,("finddcs: performing CLDAP query on %s\n", state->srv_addresses[state->srv_address_index])); @@ -345,6 +344,8 @@ static void finddcs_cldap_netlogon_replied(struct tevent_req *subreq) finddcs_cldap_next_server(state); return; } + map_netlogon_samlogon_response(&state->netlogon->out.netlogon); + if (state->minimum_dc_flags != (state->minimum_dc_flags & state->netlogon->out.netlogon.data.nt5_ex.server_type)) { /* the server didn't match the minimum requirements */