lib: Pass mem_ctx to cache_path()
[samba.git] / source3 / utils / net_ads_gpo.c
index f2f65c8790e9172e7ade9e99d37e7faae7765f3f..791e836bfd98130fa5619c89529f6bedbe3424bd 100644 (file)
@@ -100,7 +100,7 @@ static int net_ads_gpo_refresh(struct net_context *c, int argc, const char **arg
        d_printf(_("finished\n"));
 
        d_printf(_("* Refreshing Group Policy Data "));
-       gpo_cache_path = cache_path(GPO_CACHE_DIR);
+       gpo_cache_path = cache_path(talloc_tos(), GPO_CACHE_DIR);
        if (gpo_cache_path == NULL) {
                d_printf(_("failed: %s\n"), nt_errstr(NT_STATUS_NO_MEMORY));
                goto out;