summaryrefslogtreecommitdiff
path: root/source3/python/py_samr.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-16 02:24:22 +0000
committerTim Potter <tpot@samba.org>2002-05-16 02:24:22 +0000
commitce03ce2e5629930e582f9fd17445e52ce1b08907 (patch)
tree1681056b03ee12249d38fd45f89c45eeaca8e920 /source3/python/py_samr.c
parentea8c45bbfd31151e91c1c57a162f255e706ca859 (diff)
downloadsamba-ce03ce2e5629930e582f9fd17445e52ce1b08907.tar.gz
samba-ce03ce2e5629930e582f9fd17445e52ce1b08907.tar.bz2
samba-ce03ce2e5629930e582f9fd17445e52ce1b08907.zip
Refactored open_pipe_creds() function to remove unused parameter.
(This used to be commit 36ed06cb5078429445f3bbb0f69baa2e0f8356a4)
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,