summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-19 01:05:11 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-19 01:05:11 +0000
commitd5c190bae83b49de7bb8b626f83fc730f8759270 (patch)
tree20164cc25ac6d4b9ea6d8852cb63c95988f7f0ce /source3/libsmb
parent48a3c122791a8fa17809c6df8afbfbe9f44a838a (diff)
downloadsamba-d5c190bae83b49de7bb8b626f83fc730f8759270.tar.gz
samba-d5c190bae83b49de7bb8b626f83fc730f8759270.tar.bz2
samba-d5c190bae83b49de7bb8b626f83fc730f8759270.zip
return the resolved IP on a cli_connect() call so it can be cached
(This used to be commit 4e3f8ef41b8de25dec4c01d5532dca1b567be55a)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 3ed80eb7a6..48abbd7a15 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -2269,6 +2269,7 @@ BOOL cli_connect(struct cli_state *cli, char *host, struct in_addr *ip)
if (!resolve_name( cli->desthost, &dest_ip, 0x20)) {
return False;
}
+ if (ip) *ip = dest_ip;
} else {
dest_ip = *ip;
}