summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-01-30 20:20:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:19 -0500
commit4699d4741da8145b1a491eeafa4133133e194f94 (patch)
tree753caa9565e1869f26ee6c30ca9a066924103e0a
parent75e2239c5830d5bcdf3d1c735841cad12585e6dd (diff)
downloadsamba-4699d4741da8145b1a491eeafa4133133e194f94.tar.gz
samba-4699d4741da8145b1a491eeafa4133133e194f94.tar.bz2
samba-4699d4741da8145b1a491eeafa4133133e194f94.zip
r13238: Fix from Qiao Yang <qyang@stbernard.com> to ensure we
always update the failed time when we are adding a failed connection. Jeremy. (This used to be commit 6f5af1dd413d07430ead9382422dda14acf3464d)
-rw-r--r--source3/libsmb/conncache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/conncache.c b/source3/libsmb/conncache.c
index fe863db422..2af4d57b80 100644
--- a/source3/libsmb/conncache.c
+++ b/source3/libsmb/conncache.c
@@ -105,10 +105,11 @@ void add_failed_connection_entry(const char *domain, const char *server, NTSTATU
a domain, but maybe not a specific DC name. */
for (fcc = failed_connection_cache; fcc; fcc = fcc->next) {
- if ( strequal(fcc->domain_name, domain) && strequal(fcc->controller, server) )
- {
+ if ( strequal(fcc->domain_name, domain) && strequal(fcc->controller, server) ) {
DEBUG(10, ("add_failed_connection_entry: domain %s (%s) already tried and failed\n",
domain, server ));
+ /* Update the failed time. */
+ fcc->lookup_time = time(NULL);
return;
}
}