From: Andrew Tridgell Date: Thu, 25 Sep 2008 00:41:36 +0000 (-0700) Subject: for use in python we need to use global_loadparm X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a5e2df5694c5dc1be2692e8547370bcdfc58ad0;p=thirdparty%2Fsamba.git for use in python we need to use global_loadparm --- diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index e0b75a2542e..db2f97bb942 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -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; }