diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-04 08:56:23 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-09-05 09:16:23 -0700 |
commit | 8a7246ac2c5b27cc29e6ca23c1e2e0f43e298eb5 (patch) | |
tree | eed73a2a54d2e811e0bbfae2bbb27a5df6d48436 /source3/libsmb | |
parent | f630360b7ff07ffd2a22f16d50293949860418ca (diff) | |
download | samba-8a7246ac2c5b27cc29e6ca23c1e2e0f43e298eb5.tar.gz samba-8a7246ac2c5b27cc29e6ca23c1e2e0f43e298eb5.tar.bz2 samba-8a7246ac2c5b27cc29e6ca23c1e2e0f43e298eb5.zip |
lib: Add a "mem_ctx" arg to gencache_get (unused so far)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/conncache.c | 2 | ||||
-rw-r--r-- | source3/libsmb/namecache.c | 4 | ||||
-rw-r--r-- | source3/libsmb/namequery.c | 4 | ||||
-rw-r--r-- | source3/libsmb/trustdom_cache.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/source3/libsmb/conncache.c b/source3/libsmb/conncache.c index 66353188d2..dfc2f471ac 100644 --- a/source3/libsmb/conncache.c +++ b/source3/libsmb/conncache.c @@ -143,7 +143,7 @@ NTSTATUS check_negative_conn_cache( const char *domain, const char *server) if (key == NULL) goto done; - if (gencache_get(key, &value, NULL)) + if (gencache_get(key, NULL, &value, NULL)) result = negative_conn_cache_valuedecode(value); done: DEBUG(9,("check_negative_conn_cache returning result %d for domain %s " diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c index 8571dfaca5..ebd51fd919 100644 --- a/source3/libsmb/namecache.c +++ b/source3/libsmb/namecache.c @@ -156,7 +156,7 @@ bool namecache_fetch(const char *name, return False; } - if (!gencache_get(key, &value, &timeout)) { + if (!gencache_get(key, NULL, &value, &timeout)) { DEBUG(5, ("no entry for %s#%02X found.\n", name, name_type)); SAFE_FREE(key); return False; @@ -294,7 +294,7 @@ bool namecache_status_fetch(const char *keyname, if (!key) return False; - if (!gencache_get(key, &value, &timeout)) { + if (!gencache_get(key, NULL, &value, &timeout)) { DEBUG(5, ("namecache_status_fetch: no entry for %s found.\n", key)); SAFE_FREE(key); diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index d86c0ed909..15c7cacae5 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -183,7 +183,7 @@ char *saf_fetch( const char *domain ) return NULL; } - ret = gencache_get( key, &server, &timeout ); + ret = gencache_get( key, NULL, &server, &timeout ); TALLOC_FREE( key ); @@ -199,7 +199,7 @@ char *saf_fetch( const char *domain ) return NULL; } - ret = gencache_get( key, &server, &timeout ); + ret = gencache_get( key, NULL, &server, &timeout ); TALLOC_FREE( key ); diff --git a/source3/libsmb/trustdom_cache.c b/source3/libsmb/trustdom_cache.c index dadc7518fd..81b366a4cc 100644 --- a/source3/libsmb/trustdom_cache.c +++ b/source3/libsmb/trustdom_cache.c @@ -160,7 +160,7 @@ bool trustdom_cache_fetch(const char* name, struct dom_sid* sid) if (!key) return False; - if (!gencache_get(key, &value, &timeout)) { + if (!gencache_get(key, NULL, &value, &timeout)) { DEBUG(5, ("no entry for trusted domain %s found.\n", name)); SAFE_FREE(key); return False; @@ -191,7 +191,7 @@ uint32 trustdom_cache_fetch_timestamp( void ) time_t timeout; uint32 timestamp; - if (!gencache_get(TDOMTSKEY, &value, &timeout)) { + if (!gencache_get(TDOMTSKEY, NULL, &value, &timeout)) { DEBUG(5, ("no timestamp for trusted domain cache located.\n")); SAFE_FREE(value); return 0; |