There's no need to call lpcfg_resolve_context() every time again.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=16065
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Volker Lendecke <vl@samba.org>
self->libnet_ctx->lp_ctx);
status = finddcs_cldap(io, io,
- lpcfg_resolve_context(self->libnet_ctx->lp_ctx), self->ev);
+ self->libnet_ctx->resolve_ctx, self->ev);
if (NT_STATUS_IS_ERR(status)) {
PyErr_SetNTSTATUS(status);
talloc_free(mem_ctx);