diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-04 08:22:43 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-09-05 09:16:22 -0700 |
commit | 1173fed9165dffb79cfb119b6e80e379a6fd85ba (patch) | |
tree | 307be2938428f3fc6c8ad236d343a04f452ecfea /source3/libsmb | |
parent | 46131cb8023a883238b67e668be2afbc4adcf1f5 (diff) | |
download | samba-1173fed9165dffb79cfb119b6e80e379a6fd85ba.tar.gz samba-1173fed9165dffb79cfb119b6e80e379a6fd85ba.tar.bz2 samba-1173fed9165dffb79cfb119b6e80e379a6fd85ba.zip |
lib: Add "mem_ctx" to gencache_get_data_blob
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/dsgetdcname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c index 6818b01d11..4f2aa632fe 100644 --- a/source3/libsmb/dsgetdcname.c +++ b/source3/libsmb/dsgetdcname.c @@ -334,12 +334,13 @@ static NTSTATUS dsgetdcname_cache_fetch(TALLOC_CTX *mem_ctx, return NT_STATUS_NO_MEMORY; } - if (!gencache_get_data_blob(key, &blob, NULL, NULL)) { + if (!gencache_get_data_blob(key, NULL, &blob, NULL, NULL)) { return NT_STATUS_NOT_FOUND; } info = talloc_zero(mem_ctx, struct netr_DsRGetDCNameInfo); if (!info) { + data_blob_free(&blob); return NT_STATUS_NO_MEMORY; } |