Author: jra
Date: 2006-01-30 20:20:17 +0000 (Mon, 30 Jan 2006)
New Revision: 13238

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13238

Log:
Fix from Qiao Yang <[EMAIL PROTECTED]> to ensure we
always update the failed time when we are adding a failed
connection.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libsmb/conncache.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/conncache.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/conncache.c        2006-01-30 20:20:07 UTC 
(rev 13237)
+++ branches/SAMBA_3_0/source/libsmb/conncache.c        2006-01-30 20:20:17 UTC 
(rev 13238)
@@ -105,10 +105,11 @@
           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;
                }
        }

Reply via email to