summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-03-01 01:48:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:52 -0500
commit3af5da2e7c8e9490feebfe61ff5f6d0f4ded8d88 (patch)
tree87c10e5605f2bdcf77a6a7b21832a8bcbb41b87b /source3/libsmb
parentc52968b35b65920fafd569254a0a0aaff9508d11 (diff)
downloadsamba-3af5da2e7c8e9490feebfe61ff5f6d0f4ded8d88.tar.gz
samba-3af5da2e7c8e9490feebfe61ff5f6d0f4ded8d88.tar.bz2
samba-3af5da2e7c8e9490feebfe61ff5f6d0f4ded8d88.zip
r13763: r13223@cabra: derrell | 2006-02-28 20:48:23 -0500
Add the missing comment about needing to save the new share name. (This used to be commit bb3b15e631c8dae7aaea303be18e086d63ee16d6)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmb_cache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libsmb/libsmb_cache.c b/source3/libsmb/libsmb_cache.c
index 14577146fd..4fa395399e 100644
--- a/source3/libsmb/libsmb_cache.c
+++ b/source3/libsmb/libsmb_cache.c
@@ -156,7 +156,11 @@ static SMBCSRV * smbc_get_cached_server(SMBCCTX * context, const char * server,
continue;
}
-
+ /*
+ * Save the new share name. We've
+ * disconnected from the old share, and are
+ * about to connect to the new one.
+ */
SAFE_FREE(srv->share_name);
srv->share_name = SMB_STRDUP(share);
if (!srv->share_name) {