diff options
author | Volker Lendecke <vl@samba.org> | 2008-07-11 17:44:25 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-07-11 17:53:25 +0200 |
commit | d3def9a18cc701573530154ed420278f007f06a3 (patch) | |
tree | a69446c4eb869be0174120dcd66becbf8221005c /source3/libsmb/trustdom_cache.c | |
parent | cc78ea5d09f2d8e338f0626fb1215f06ee7e1bbe (diff) | |
download | samba-d3def9a18cc701573530154ed420278f007f06a3.tar.gz samba-d3def9a18cc701573530154ed420278f007f06a3.tar.bz2 samba-d3def9a18cc701573530154ed420278f007f06a3.zip |
Revert "Pass NULL to gencache_get when we are not interested in the timeout value"
This reverts commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0.
(This used to be commit 114ca8577568cdb5a81d8734f1d1d096f1b36c36)
Diffstat (limited to 'source3/libsmb/trustdom_cache.c')
-rw-r--r-- | source3/libsmb/trustdom_cache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/trustdom_cache.c b/source3/libsmb/trustdom_cache.c index 92dde0c6c8..6755de3814 100644 --- a/source3/libsmb/trustdom_cache.c +++ b/source3/libsmb/trustdom_cache.c @@ -164,6 +164,7 @@ bool trustdom_cache_store(char* name, char* alt_name, const DOM_SID *sid, bool trustdom_cache_fetch(const char* name, DOM_SID* sid) { char *key = NULL, *value = NULL; + time_t timeout; /* init the cache */ if (!gencache_init()) @@ -178,7 +179,7 @@ bool trustdom_cache_fetch(const char* name, DOM_SID* sid) if (!key) return False; - if (!gencache_get(key, &value, NULL)) { + if (!gencache_get(key, &value, &timeout)) { DEBUG(5, ("no entry for trusted domain %s found.\n", name)); SAFE_FREE(key); return False; @@ -206,13 +207,14 @@ bool trustdom_cache_fetch(const char* name, DOM_SID* sid) uint32 trustdom_cache_fetch_timestamp( void ) { char *value = NULL; + time_t timeout; uint32 timestamp; /* init the cache */ if (!gencache_init()) return False; - if (!gencache_get(TDOMTSKEY, &value, NULL)) { + if (!gencache_get(TDOMTSKEY, &value, &timeout)) { DEBUG(5, ("no timestamp for trusted domain cache located.\n")); SAFE_FREE(value); return 0; |