summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-19 17:49:37 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-19 17:49:37 +0000
commit1040d27b14032cc609f1bffcb0e1c40622e8b536 (patch)
tree72c78707f96301f69eb4a4d6231f4b6216be6e4b
parent0aef8b2ea64afb96bdf4d65689af775215b9ee37 (diff)
downloadsamba-1040d27b14032cc609f1bffcb0e1c40622e8b536.tar.gz
samba-1040d27b14032cc609f1bffcb0e1c40622e8b536.tar.bz2
samba-1040d27b14032cc609f1bffcb0e1c40622e8b536.zip
fixed memory corruption in cli_full_connection()
(This used to be commit 7c2167182becbf72ba062230e911d55d337a4709)
-rw-r--r--source3/libsmb/cliconnect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 93cf3d95db..73846c4d43 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1162,8 +1162,7 @@ again:
char *p;
DEBUG(1,("session request to %s failed (%s)\n",
called.name, cli_errstr(cli)));
- cli_shutdown(cli);
- if ((p=strchr(called.name, '.'))) {
+ if ((p=strchr(called.name, '.')) && !is_ipaddress(called.name)) {
*p = 0;
goto again;
}