summaryrefslogtreecommitdiff
path: root/source3/python/py_common.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_common.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_common.c')
-rw-r--r--source3/python/py_common.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/python/py_common.c b/source3/python/py_common.c
index d15df234d1..364271d57c 100644
--- a/source3/python/py_common.c
+++ b/source3/python/py_common.c
@@ -218,7 +218,7 @@ BOOL py_parse_creds(PyObject *creds, char **username, char **domain,
be freed by calling free(). */
struct cli_state *open_pipe_creds(char *server, PyObject *creds,
- char *pipe_name, char **errstr)
+ int pipe_idx, char **errstr)
{
char *username, *password, *domain;
struct cli_state *cli;
@@ -240,10 +240,9 @@ struct cli_state *open_pipe_creds(char *server, PyObject *creds,
return NULL;
}
- if (!cli_nt_session_open(cli, pipe_name)) {
+ if (!cli_nt_session_open(cli, pipe_idx)) {
cli_shutdown(cli);
- free(cli);
- asprintf(errstr, "error opening %s", pipe_name);
+ asprintf(errstr, "error opening pipe index %d", pipe_idx);
return NULL;
}