diff options
author | Tim Potter <tpot@samba.org> | 2002-10-17 04:40:53 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-10-17 04:40:53 +0000 |
commit | dae2b02f781267d2a00bc627a053abef39299831 (patch) | |
tree | 0b99fd952b7ab54b775bbb6e981614caf8e6b005 /source3/python | |
parent | 33b9cc3f67bb94f51566a29bfca5abd76cd516b3 (diff) | |
download | samba-dae2b02f781267d2a00bc627a053abef39299831.tar.gz samba-dae2b02f781267d2a00bc627a053abef39299831.tar.bz2 samba-dae2b02f781267d2a00bc627a053abef39299831.zip |
Fix for new arguments of cli_nt_session_open()
(This used to be commit cfb0c12eb6412c2cc84785c17ab2f6c89916aa56)
Diffstat (limited to 'source3/python')
-rw-r--r-- | source3/python/py_common.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/python/py_common.c b/source3/python/py_common.c index e21858e072..8742cfa363 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; } |