svn commit: samba r13237 - in trunk/source/libsmb: .

jra at samba.org jra at samba.org
Mon Jan 30 20:20:07 GMT 2006


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

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

Log:
Fix from Qiao Yang <qyang at stbernard.com> to ensure we
always update the failed time when we are adding a failed
connection.
Jeremy.

Modified:
   trunk/source/libsmb/conncache.c


Changeset:
Modified: trunk/source/libsmb/conncache.c
===================================================================
--- trunk/source/libsmb/conncache.c	2006-01-30 19:24:44 UTC (rev 13236)
+++ trunk/source/libsmb/conncache.c	2006-01-30 20:20:07 UTC (rev 13237)
@@ -113,10 +113,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;
 		}
 	}



More information about the samba-cvs mailing list