Ensure we get this option from the command line, not the internal
authorAndrew Bartlett <abartlet@samba.org>
Thu, 6 Mar 2008 11:03:10 +0000 (22:03 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Mar 2008 11:03:10 +0000 (22:03 +1100)
smb.conf we generate.

Andrew Bartlett
(This used to be commit 25887c87285b1b92ce5d7cc096da483c25a2fe6c)

source4/torture/libnet/libnet_BecomeDC.c

index 6e882d56261a37d2b3199fe95f822863ae5c7169..4a3f7b5f615a8d9d58bf0a08022b507052a80eb2 100644 (file)
@@ -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;
        }