From 14df81590cd7f2b26053803de924c8604aad3c3b Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 17 Oct 2002 04:45:25 +0000 Subject: open_pipe_creds() now takes a pipe index instead of a pipe name. (This used to be commit 3a0a30beda4b8be0038c98ccc6f8f01c6dae386a) --- source3/python/py_samr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/python/py_samr.c') 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; } -- cgit