diff options
author | Günther Deschner <gd@samba.org> | 2009-04-07 00:40:46 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-07 01:17:30 +0200 |
commit | d71dec9259366e99beca69fcd9397bd38ed82c71 (patch) | |
tree | 963204bf8ced95db535348c57542edbbf3db26a3 /source3/printing | |
parent | eeddbb6f8466d285fd103a3a4da9ebf5afbcb613 (diff) | |
download | samba-d71dec9259366e99beca69fcd9397bd38ed82c71.tar.gz samba-d71dec9259366e99beca69fcd9397bd38ed82c71.tar.xz samba-d71dec9259366e99beca69fcd9397bd38ed82c71.zip |
s3-libads: avoid NULL talloc context with ads_get_dn().
Guenther
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 40d7cd6347..c20171b049 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3357,7 +3357,7 @@ static WERROR nt_printer_unpublish_ads(ADS_STRUCT *ads, printer->info_2->sharename, global_myname()); if (ADS_ERR_OK(ads_rc) && res && ads_count_replies(ads, res)) { - prt_dn = ads_get_dn(ads, NULL, res); + prt_dn = ads_get_dn(ads, talloc_tos(), res); if (!prt_dn) { ads_msgfree(ads, res); return WERR_NOMEM; |