summaryrefslogtreecommitdiff
path: root/source/libsmb/clientgen.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-12 20:03:42 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-12 20:03:42 +0000
commitcaa50525220b0d0250fa139367593c2de2c12135 (patch)
treee37748c25c6d433104f4f98540f5cf0a68b69254 /source/libsmb/clientgen.c
parentaa3c659a8dba0437c17c60055a6ed30fdfecdb6d (diff)
downloadsamba-caa50525220b0d0250fa139367593c2de2c12135.tar.gz
final part of "first" phase converting over to msrpc daemon architecture.
done a minimal amout of clean-up in the Makefile, removing unnecessary modules from the link stage. this is not complete, yet, and will involve some changes, for example to smbd, to remove dependencies on the password database API that shouldn't be there. for example, smbd should not ever call getsmbpwXXX() it should call the Samr or Lsa API. this first implementation has minor problems with not reinstantiating the same services as the caller. the "homes" service is a good example.
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r--source/libsmb/clientgen.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index 27efc132c0f..62c7429b595 100644
--- a/source/libsmb/clientgen.c
+++ b/source/libsmb/clientgen.c
@@ -1337,9 +1337,7 @@ int cli_nt_create(struct cli_state *cli, const char *fname)
pstrcpy(p,fname);
p = skip_string(p,1);
- if (!cli_send_smb(cli, True)) {
- return -1;
- }
+ cli_send_smb(cli, True);
if (!cli_receive_smb(cli)) {
return -1;
}
@@ -2947,7 +2945,7 @@ static BOOL cli_init_redirect(struct cli_state *cli,
if (strequal(srv_name, "*SMBSERVER"))
{
fstrcpy(ip_name, "\\\\");
- destip->s_addr = inet_addr(&ip_name[2]);
+ inet_aton(&ip_name[2], destip);
srv_name = ip_name;
}