summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clientgen.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>1999-12-09 07:06:12 +0000
committerGerald Carter <jerry@samba.org>1999-12-09 07:06:12 +0000
commite1d2b174caf5f0c48a8fac25778f72a868ec6eb7 (patch)
tree524c588ea62d25668252ff06e21a72480deb8f12 /source/libsmb/clientgen.c
parent631814302d6992138cfe024ba7bd456cc7e0d3bf (diff)
downloadsamba-e1d2b174caf5f0c48a8fac25778f72a868ec6eb7.tar.gz
samba-e1d2b174caf5f0c48a8fac25778f72a868ec6eb7.tar.xz
samba-e1d2b174caf5f0c48a8fac25778f72a868ec6eb7.zip
OK. This code works on a RedHat 6.0 system. However smbpasswd
time out of sending the session setup on Solaris 2.6. No idea. I'll work on it some tomorrow. This is to fix the "Unable to setup password vectors" thingy. Also changed an inet_aton() to inet_addr() as the former is not very portable :-) Luke, I set the redir flag to false because the connection to the smb-agent was failing and smbpasswd bombed. Double check me on this one. -jc
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r--source/libsmb/clientgen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index 49772cd37ad..50bf54d02c3 100644
--- a/source/libsmb/clientgen.c
+++ b/source/libsmb/clientgen.c
@@ -1337,7 +1337,9 @@ int cli_nt_create(struct cli_state *cli, const char *fname)
pstrcpy(p,fname);
p = skip_string(p,1);
- cli_send_smb(cli, True);
+ if (!cli_send_smb(cli, True)) {
+ return -1;
+ }
if (!cli_receive_smb(cli)) {
return -1;
}
@@ -2945,7 +2947,7 @@ static int cli_init_redirect(struct cli_state *cli,
if (strequal(srv_name, "*SMBSERVER"))
{
fstrcpy(ip_name, "\\\\");
- inet_aton(&ip_name[2], destip);
+ destip->s_addr = inet_addr(&ip_name[2]);
srv_name = ip_name;
}