diff options
author | Tim Potter <tpot@samba.org> | 2002-06-20 00:51:07 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-06-20 00:51:07 +0000 |
commit | d35c5f39a5aed7fba83e7096204c7b8925905b57 (patch) | |
tree | 4040cc6615bfec8a05dc60fb14d58cde486d2e23 /source3/python | |
parent | df1893d53238927fbcf73a687f921d21abca5ded (diff) | |
download | samba-d35c5f39a5aed7fba83e7096204c7b8925905b57.tar.gz samba-d35c5f39a5aed7fba83e7096204c7b8925905b57.tar.bz2 samba-d35c5f39a5aed7fba83e7096204c7b8925905b57.zip |
Compile fix for new arguments to cli_full_connection()
(This used to be commit 0d05c8ce54c3fa859abb8bd2ac13cacaed63e95c)
Diffstat (limited to 'source3/python')
-rw-r--r-- | source3/python/py_common.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/python/py_common.c b/source3/python/py_common.c index eb36fc552c..471a53da84 100644 --- a/source3/python/py_common.c +++ b/source3/python/py_common.c @@ -137,8 +137,6 @@ struct cli_state *open_pipe_creds(char *server, PyObject *creds, char *username = "", *password = "", *domain = ""; struct cli_state *cli; NTSTATUS result; - struct in_addr server_ip; - extern pstring global_myname; /* Extract credentials from the python dictionary */ @@ -174,14 +172,9 @@ struct cli_state *open_pipe_creds(char *server, PyObject *creds, /* Now try to connect */ - if (!resolve_name(server, &server_ip, 0x20)) { - asprintf(errstr, "unable to resolve %s", server); - return NULL; - } - result = cli_full_connection( - &cli, global_myname, server, &server_ip, 0, "IPC$", "IPC", - username, domain, password, strlen(password)); + &cli, NULL, server, NULL, 0, "IPC$", "IPC", + username, domain, password); if (!NT_STATUS_IS_OK(result)) { *errstr = strdup("error connecting to IPC$ pipe"); |