diff options
author | Tim Potter <tpot@samba.org> | 2002-10-17 04:45:25 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-10-17 04:45:25 +0000 |
commit | 3a0a30beda4b8be0038c98ccc6f8f01c6dae386a (patch) | |
tree | 3f1610e36d4cc5d76973263be6535f1368e7ef70 /source/python/py_samr.c | |
parent | cfb0c12eb6412c2cc84785c17ab2f6c89916aa56 (diff) | |
download | samba-3a0a30beda4b8be0038c98ccc6f8f01c6dae386a.tar.gz samba-3a0a30beda4b8be0038c98ccc6f8f01c6dae386a.tar.xz samba-3a0a30beda4b8be0038c98ccc6f8f01c6dae386a.zip |
open_pipe_creds() now takes a pipe index instead of a pipe name.
Diffstat (limited to 'source/python/py_samr.c')
-rw-r--r-- | source/python/py_samr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/python/py_samr.c b/source/python/py_samr.c index 917a90a2fb3..92a2eaf0637 100644 --- a/source/python/py_samr.c +++ b/source/python/py_samr.c @@ -393,7 +393,7 @@ static PyObject *samr_connect(PyObject *self, PyObject *args, PyObject *kw) return NULL; } - if (!(cli = open_pipe_creds(server, creds, PIPE_SAMR, &errstr))) { + if (!(cli = open_pipe_creds(server, creds, PI_SAMR, &errstr))) { PyErr_SetString(samr_error, errstr); free(errstr); return NULL; @@ -409,7 +409,6 @@ static PyObject *samr_connect(PyObject *self, PyObject *args, PyObject *kw) if (!NT_STATUS_IS_OK(ntstatus)) { cli_shutdown(cli); - SAFE_FREE(cli); PyErr_SetObject(samr_ntstatus, py_ntstatus_tuple(ntstatus)); goto done; } |