summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-02 17:04:22 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-02 17:04:22 +0100
commita1cc27814240bf50bd546dcfc8b80d3838a6a38d (patch)
tree04d7c24dcbbeb344fa36b5a0937015b44008da30 /pidl/lib/Parse/Pidl
parentcb77fca1cd4cb340ca619410195aa6895f848b92 (diff)
downloadsamba-a1cc27814240bf50bd546dcfc8b80d3838a6a38d.tar.gz
samba-a1cc27814240bf50bd546dcfc8b80d3838a6a38d.tar.bz2
samba-a1cc27814240bf50bd546dcfc8b80d3838a6a38d.zip
Remove use of global_loadparm during initialization of gensec.
Diffstat (limited to 'pidl/lib/Parse/Pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Python.pm16
1 files changed, 8 insertions, 8 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 58e6910d3d..38aee2c9d1 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -698,6 +698,14 @@ sub Interface($$$)
$self->pidl("}");
$self->pidl("");
+ $self->pidl("status = dcerpc_init(lp_ctx);");
+ $self->pidl("if (!NT_STATUS_IS_OK(status)) {");
+ $self->indent;
+ $self->pidl("PyErr_SetNTSTATUS(status);");
+ $self->pidl("return;");
+ $self->deindent;
+ $self->pidl("}");
+
$self->pidl("credentials = cli_credentials_from_py_object(py_credentials);");
$self->pidl("if (credentials == NULL) {");
$self->indent;
@@ -1210,14 +1218,6 @@ sub Parse($$$$$)
}
$self->pidl("");
- $self->pidl("status = dcerpc_init();");
- $self->pidl("if (!NT_STATUS_IS_OK(status)) {");
- $self->indent;
- $self->pidl("PyErr_SetNTSTATUS(status);");
- $self->pidl("return;");
- $self->deindent;
- $self->pidl("}");
-
$self->deindent;
$self->pidl("}");
return ($self->{res_hdr}, $self->{res});