summaryrefslogtreecommitdiff
path: root/source3/python/py_samr.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-11-04 20:33:16 +0000
committerTim Potter <tpot@samba.org>2002-11-04 20:33:16 +0000
commitea6d5bc48bd14f8eaca665576d7094cce53be81a (patch)
tree4d94caa26ac4186ca77d6613098bf01f31ef6a56 /source3/python/py_samr.c
parent44847694737255fc9184b5e5c113d4e786b76afd (diff)
downloadsamba-ea6d5bc48bd14f8eaca665576d7094cce53be81a.tar.gz
samba-ea6d5bc48bd14f8eaca665576d7094cce53be81a.tar.bz2
samba-ea6d5bc48bd14f8eaca665576d7094cce53be81a.zip
Sync with HEAD.
(This used to be commit 0310e539bb41f569c7ae77b2d131e966adefa27b)
Diffstat (limited to 'source3/python/py_samr.c')
-rw-r--r--source3/python/py_samr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/python/py_samr.c b/source3/python/py_samr.c
index 917a90a2fb..92a2eaf063 100644
--- a/source3/python/py_samr.c
+++ b/source3/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;
}