r25430: Add the loadparm context to all parametric options.
[ab/samba.git/.git] / source4 / torture / smbtorture.c
index 5ef2025d1efd24cd23e9a37996c374fa9420fa94..b614e84a5ba2b9f04423c0de017c1e4e75507f60 100644 (file)
@@ -633,7 +633,7 @@ int main(int argc,char *argv[])
                        return false;
                }
                lp_set_cmdline(global_loadparm, "torture:host", binding_struct->host);
-               if (lp_parm_string(NULL, "torture", "share") == NULL)
+               if (lp_parm_string(global_loadparm, NULL, "torture", "share") == NULL)
                        lp_set_cmdline(global_loadparm, "torture:share", "IPC$");
                lp_set_cmdline(global_loadparm, "torture:binding", argv_new[1]);
        } else {