summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-05 09:36:34 +0200
committerVolker Lendecke <vl@samba.org>2008-06-07 08:16:23 +0200
commitdd30dd2a14f4a883d737150de80d896b941180c5 (patch)
tree5b27ee450efd13fb340f81482f33bf3ee8e64be7 /source3
parente252b0504a680399d78e9a36d9018fce684d2a73 (diff)
downloadsamba-dd30dd2a14f4a883d737150de80d896b941180c5.tar.gz
samba-dd30dd2a14f4a883d737150de80d896b941180c5.tar.bz2
samba-dd30dd2a14f4a883d737150de80d896b941180c5.zip
Fix a crash in add_failed_connection_entry
(This used to be commit 2a689aa66af1de3d2e0d08b51e33e9a7015d6cb7)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/conncache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/conncache.c b/source3/libsmb/conncache.c
index b8f98085ce..05344f4071 100644
--- a/source3/libsmb/conncache.c
+++ b/source3/libsmb/conncache.c
@@ -204,7 +204,8 @@ void add_failed_connection_entry(const char *domain, const char *server,
}
if (gencache_set(key, value,
- time((time_t *) NULL + FAILED_CONNECTION_CACHE_TIMEOUT)))
+ time((time_t *) NULL)
+ + FAILED_CONNECTION_CACHE_TIMEOUT))
DEBUG(9,("add_failed_connection_entry: added domain %s (%s) "
"to failed conn cache\n", domain, server ));
else