diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-27 03:15:42 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-10-27 03:15:42 +0000 |
commit | 0c9d43dd21e30048b380ef66bbdd3a4ae291448c (patch) | |
tree | 4084f8e9aa0237f101884dc05b74c604df001150 /source/client | |
parent | f51bedab4279d3336dbbbe43d8adfc1a78e47636 (diff) | |
download | samba-0c9d43dd21e30048b380ef66bbdd3a4ae291448c.tar.gz samba-0c9d43dd21e30048b380ef66bbdd3a4ae291448c.tar.xz samba-0c9d43dd21e30048b380ef66bbdd3a4ae291448c.zip |
r3278: - rewrote the client side rpc connection code to use lib/socket/
rather than doing everything itself. This greatly simplifies the
code, although I really don't like the socket_recv() interface (it
always allocates memory for you, which means an extra memcpy in this
code)
- fixed several bugs in the socket_ipv4.c code, in particular client
side code used a non-blocking connect but didn't handle EINPROGRESS,
so it had no chance of working. Also fixed the error codes, using
map_nt_error_from_unix()
- cleaned up and expanded map_nt_error_from_unix()
- changed interpret_addr2() to not take a mem_ctx. It makes absolutely
no sense to allocate a fixed size 4 byte structure like this. Dozens
of places in the code were also using interpret_addr2() incorrectly
(precisely because the allocation made no sense)
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/smbmount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/client/smbmount.c b/source/client/smbmount.c index 795bd508122..dd72672bbb7 100644 --- a/source/client/smbmount.c +++ b/source/client/smbmount.c @@ -787,7 +787,7 @@ static void parse_mount_smb(int argc, char **argv) } else if(!strcmp(opts, "debug")) { DEBUGLEVEL = val; } else if(!strcmp(opts, "ip")) { - dest_ip = *interpret_addr2(opteq+1); + dest_ip = interpret_addr2(opteq+1); if (is_zero_ip(dest_ip)) { fprintf(stderr,"Can't resolve address %s\n", opteq+1); exit(1); |