From 4699d4741da8145b1a491eeafa4133133e194f94 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 30 Jan 2006 20:20:17 +0000 Subject: r13238: Fix from Qiao Yang to ensure we always update the failed time when we are adding a failed connection. Jeremy. (This used to be commit 6f5af1dd413d07430ead9382422dda14acf3464d) --- source3/libsmb/conncache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3') 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; } } -- cgit