diff options
author | Günther Deschner <gd@samba.org> | 2016-08-17 11:58:02 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-12-16 20:38:32 +0000 |
commit | 39e8489dfc51b2293afa13d58b167819b46918dc (patch) | |
tree | 1969bf1ac7da4d1cec3f3694fc75de750b95c9ad /source3/printing | |
parent | 89828c64c9a8114bb5f596bc007a7c126e803d80 (diff) | |
download | samba-39e8489dfc51b2293afa13d58b167819b46918dc.tar.gz |
s3-librpc: add ads.idl and convert ads_struct to talloc.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing_ads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c index ff41baad5a2..0056786ad49 100644 --- a/source3/printing/nt_printing_ads.c +++ b/source3/printing/nt_printing_ads.c @@ -235,7 +235,7 @@ WERROR nt_printer_guid_retrieve(TALLOC_CTX *mem_ctx, const char *printer, old_krb5ccname = getenv(KRB5_ENV_CCNAME); setenv(KRB5_ENV_CCNAME, "MEMORY:prtpub_cache", 1); - TALLOC_FREE(ads->auth.password); + ADS_TALLOC_CONST_FREE(ads->auth.password); machine_password = secrets_fetch_machine_password(lp_workgroup(), NULL, NULL); if (machine_password != NULL) { @@ -698,7 +698,7 @@ WERROR nt_printer_publish(TALLOC_CTX *mem_ctx, } old_krb5ccname = getenv(KRB5_ENV_CCNAME); setenv(KRB5_ENV_CCNAME, "MEMORY:prtpub_cache", 1); - TALLOC_FREE(ads->auth.password); + ADS_TALLOC_CONST_FREE(ads->auth.password); machine_password = secrets_fetch_machine_password(lp_workgroup(), NULL, NULL); if (machine_password != NULL) { @@ -768,7 +768,7 @@ WERROR check_published_printers(struct messaging_context *msg_ctx) } old_krb5ccname = getenv(KRB5_ENV_CCNAME); setenv(KRB5_ENV_CCNAME, "MEMORY:prtpub_cache", 1); - TALLOC_FREE(ads->auth.password); + ADS_TALLOC_CONST_FREE(ads->auth.password); machine_password = secrets_fetch_machine_password(lp_workgroup(), NULL, NULL); if (machine_password != NULL) { |