1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libcli4: Call map_netlogon_samlogon_response directly

Avoid using a boolean flag passed down

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Volker Lendecke 2024-10-29 08:57:53 +01:00
parent b5af90bd5c
commit fc9810051e

View File

@ -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 */