s4-dsdb: create a static system_session context
[kai/samba-autobuild/.git] / source4 / nbt_server / nbt_server.c
index 4a02feb6fc3e182402b2a5447ee5db45dae0c016..38abf7135e967d95320cd5f7b3b4e1fb71719e11 100644 (file)
@@ -66,7 +66,7 @@ static void nbtd_task_init(struct task_server *task)
                return;
        }
 
-       nbtsrv->sam_ctx = samdb_connect(nbtsrv, task->event_ctx, task->lp_ctx, system_session(nbtsrv, task->lp_ctx));
+       nbtsrv->sam_ctx = samdb_connect(nbtsrv, task->event_ctx, task->lp_ctx, system_session(task->lp_ctx));
        if (nbtsrv->sam_ctx == NULL) {
                task_server_terminate(task, "nbtd failed to open samdb", true);
                return;