s4:finddcs_cldap: debug the correct server address instead of NULL
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Nov 2011 12:18:20 +0000 (13:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 Nov 2011 13:59:10 +0000 (14:59 +0100)
metze

source4/libcli/finddcs_cldap.c

index 8199e375109934fa730bb6b48303fd9cac5bd824..a0f538df7c792afc06061f5261ed69ba6df49ceb 100644 (file)
@@ -249,7 +249,8 @@ static void finddcs_cldap_next_server(struct finddcs_cldap_state *state)
                NETLOGON_NT_VERSION_IP;
        state->netlogon->in.map_response = true;
 
-       DEBUG(4,("finddcs: performing CLDAP query on %s\n", state->netlogon->in.dest_address));
+       DEBUG(4,("finddcs: performing CLDAP query on %s\n",
+                state->srv_addresses[state->srv_address_index]));
 
        subreq = cldap_netlogon_send(state, state->ev,
                                     state->cldap, state->netlogon);