s3:winbindd: use find_domain_from_name_noinit() in winbindd_ping_dc_send()
authorStefan Metzmacher <metze@samba.org>
Tue, 16 Dec 2014 11:27:21 +0000 (11:27 +0000)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Dec 2014 12:15:12 +0000 (13:15 +0100)
We should not try to connect to the given domain from within the winbindd parent.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/winbindd/winbindd_ping_dc.c

index b5a697779bc7ede9325c2e0a979d8e1732b5faa7..05e840206251fc2b7f7a97ec6b020c3c0241d75e 100644 (file)
@@ -47,7 +47,7 @@ struct tevent_req *winbindd_ping_dc_send(TALLOC_CTX *mem_ctx,
                /* preserve old behavior, when no domain name is given */
                domain = find_our_domain();
        } else {
-               domain = find_domain_from_name(request->domain_name);
+               domain = find_domain_from_name_noinit(request->domain_name);
        }
        if (domain == NULL) {
                tevent_req_nterror(req, NT_STATUS_NO_SUCH_DOMAIN);