]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:py_net: make use of self->libnet_ctx->resolve_ctx
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Jul 2026 18:58:18 +0000 (20:58 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 1 Aug 2026 08:08:32 +0000 (08:08 +0000)
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>
source4/libnet/py_net.c

index d53d345e45d8c2745380edea1b15ba1251452755..53edd89ea31834b2cf1594c71207c92e66a349f2 100644 (file)
@@ -761,7 +761,7 @@ static PyObject *py_net_finddc(py_net_Object *self, PyObject *args, PyObject *kw
                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);