Remove more uses of global_loadparm.
[kai/samba.git] / source4 / lib / messaging / pymessaging.c
index 590edfef6430f643f614f5a0f3b73f945eda9b02..c2c23b679e0cab3c9a64a614e0eb16402afa30cc 100644 (file)
@@ -80,7 +80,7 @@ PyObject *py_messaging_connect(PyTypeObject *self, PyObject *args, PyObject *kwa
        ev = s4_event_context_init(ret->mem_ctx);
 
        if (messaging_path == NULL) {
-               messaging_path = lp_messaging_path(ret, global_loadparm);
+               messaging_path = lp_messaging_path(ret->mem_ctx, global_loadparm);
        } else {
                messaging_path = talloc_strdup(ret->mem_ctx, messaging_path);
        }
@@ -334,7 +334,7 @@ PyObject *py_irpc_connect(PyTypeObject *self, PyObject *args, PyObject *kwargs)
        ev = s4_event_context_init(ret->mem_ctx);
 
        if (messaging_path == NULL) {
-               messaging_path = lp_messaging_path(ret, global_loadparm);
+               messaging_path = lp_messaging_path(ret->mem_ctx, global_loadparm);
        } else {
                messaging_path = talloc_strdup(ret->mem_ctx, messaging_path);
        }