summaryrefslogtreecommitdiff
path: root/source3/python/py_samr.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/python/py_samr.c')
-rw-r--r--source3/python/py_samr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/python/py_samr.c b/source3/python/py_samr.c
index 6c52ebe8cd..66d6266d10 100644
--- a/source3/python/py_samr.c
+++ b/source3/python/py_samr.c
@@ -287,13 +287,8 @@ static PyObject *samr_connect(PyObject *self, PyObject *args, PyObject *kw)
&creds, &desired_access))
return NULL;
- if (!(cli = open_pipe_creds(server_name, creds, cli_samr_initialise,
- NULL))) {
-
- /* Error state set in open_pipe_creds() */
-
+ if (!(cli = open_pipe_creds(server_name, creds, cli_samr_initialise)))
goto done;
- }
if (!(mem_ctx = talloc_init())) {
PyErr_SetString(samr_ntstatus,