git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e2239
)
r13238: Fix from Qiao Yang <qyang@stbernard.com> to ensure we
author
Jeremy Allison
<jra@samba.org>
Mon, 30 Jan 2006 20:20:17 +0000
(20:20 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:06:19 +0000
(11:06 -0500)
always update the failed time when we are adding a failed
connection.
Jeremy.
(This used to be commit
6f5af1dd413d07430ead9382422dda14acf3464d
)
source3/libsmb/conncache.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/conncache.c
b/source3/libsmb/conncache.c
index fe863db422afa18c5c07dbd52c6d387c959d969e..2af4d57b804ae0c5f51580f3ca5db0edc01ea620 100644
(file)
--- 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;
}
}