diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-04 08:57:59 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-09-05 20:09:21 +0200 |
commit | d3c689fc5c80431b7e72150f72465b3d255a6f02 (patch) | |
tree | 5345e29db38968ef5692e1c8d2435b2d6a3fe45a /source3/libsmb/trustdom_cache.c | |
parent | 32037e0533f720ebbd3f49c5951c4ef30aac9985 (diff) | |
download | samba-d3c689fc5c80431b7e72150f72465b3d255a6f02.tar.gz samba-d3c689fc5c80431b7e72150f72465b3d255a6f02.tar.bz2 samba-d3c689fc5c80431b7e72150f72465b3d255a6f02.zip |
lib: Use "mem_ctx" arg in gencache_get
Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Sep 5 20:09:21 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/libsmb/trustdom_cache.c')
-rw-r--r-- | source3/libsmb/trustdom_cache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libsmb/trustdom_cache.c b/source3/libsmb/trustdom_cache.c index 81b366a4cc..81d8bf9c7a 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, NULL, &value, &timeout)) { + if (!gencache_get(key, talloc_tos(), &value, &timeout)) { DEBUG(5, ("no entry for trusted domain %s found.\n", name)); SAFE_FREE(key); return False; @@ -172,11 +172,11 @@ bool trustdom_cache_fetch(const char* name, struct dom_sid* sid) /* convert sid string representation into struct dom_sid structure */ if(! string_to_sid(sid, value)) { sid = NULL; - SAFE_FREE(value); + TALLOC_FREE(value); return False; } - SAFE_FREE(value); + TALLOC_FREE(value); return True; } @@ -191,7 +191,7 @@ uint32 trustdom_cache_fetch_timestamp( void ) time_t timeout; uint32 timestamp; - if (!gencache_get(TDOMTSKEY, NULL, &value, &timeout)) { + if (!gencache_get(TDOMTSKEY, talloc_tos(), &value, &timeout)) { DEBUG(5, ("no timestamp for trusted domain cache located.\n")); SAFE_FREE(value); return 0; @@ -199,7 +199,7 @@ uint32 trustdom_cache_fetch_timestamp( void ) timestamp = atoi(value); - SAFE_FREE(value); + TALLOC_FREE(value); return timestamp; } |