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/rpc_server/spoolss | |
parent | f630360b7ff07ffd2a22f16d50293949860418ca (diff) | |
download | samba-8a7246ac2c5b27cc29e6ca23c1e2e0f43e298eb5.tar.gz samba-8a7246ac2c5b27cc29e6ca23c1e2e0f43e298eb5.tar.xz 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/rpc_server/spoolss')
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index a094b4945a..37f11c78ee 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -630,7 +630,8 @@ static WERROR set_printer_hnd_name(TALLOC_CTX *mem_ctx, cache_key = talloc_asprintf(talloc_tos(), "PRINTERNAME/%s", aprinter); - if ((cache_key != NULL) && gencache_get(cache_key, &tmp, NULL)) { + if ((cache_key != NULL) && + gencache_get(cache_key, NULL, &tmp, NULL)) { found = (strcmp(tmp, printer_not_found) != 0); if (!found) { |