for use in python we need to use global_loadparm
authorAndrew Tridgell <tridge@samba.org>
Thu, 25 Sep 2008 00:41:36 +0000 (17:41 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 25 Sep 2008 01:10:23 +0000 (18:10 -0700)
source4/libcli/smb2/connect.c

index e0b75a2542ea322915feb967c8d27db18acd8c19..db2f97bb942b515510ed7f3333ab5d6bd6947306 100644 (file)
@@ -210,7 +210,7 @@ static void continue_resolve(struct composite_context *creq)
        const char **ports;
        const char *default_ports[] = { "445", NULL };
 
-       ports = lp_parm_string_list(state, cmdline_lp_ctx, NULL, "smb2", "ports", NULL);
+       ports = lp_parm_string_list(state, global_loadparm, NULL, "smb2", "ports", NULL);
        if (ports == NULL) {
                ports = default_ports;
        }