diff --git a/source/torture/libnet/libnet_BecomeDC.c b/source/torture/libnet/libnet_BecomeDC.c index 6e882d56261..4a3f7b5f615 100644 --- a/source/torture/libnet/libnet_BecomeDC.c +++ b/source/torture/libnet/libnet_BecomeDC.c @@ -703,7 +703,8 @@ bool torture_net_become_dc(struct torture_context *torture) goto cleanup; } - if (lp_parm_bool(s->lp_ctx, NULL, "become dc", "do not unjoin", false)) { + /* Make sure we get this from the command line */ + if (lp_parm_bool(toture->lp_ctx, NULL, "become dc", "do not unjoin", false)) { talloc_free(s); return ret; }