Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
/* get a list of all domain controllers */
- if (!NT_STATUS_IS_OK(get_sorted_dc_list(domain, NULL, &ip_list, &count,
- False))) {
+ result = get_sorted_dc_list_talloc(talloc_tos(),
+ domain,
+ NULL,
+ &ip_list,
+ &count,
+ false);
+ if (!NT_STATUS_IS_OK(result)) {
DEBUG(3, ("Could not look up dc's for domain %s\n", domain));
return False;
}
}
}
- SAFE_FREE(ip_list);
+ TALLOC_FREE(ip_list);
/* No-one to talk to )-: */
return False; /* Boo-hoo */
addr, domain));
*ss_out = dc_ss;
- SAFE_FREE(ip_list);
+ TALLOC_FREE(ip_list);
return True;
}