diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 6b9a46070b..6a7fd4d398 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3112,6 +3112,10 @@ static WERROR nt_printer_unpublish_ads(ADS_STRUCT *ads, if (ADS_ERR_OK(ads_rc) && ads_count_replies(ads, res)) { prt_dn = ads_get_dn(ads, res); + if (!prt_dn) { + ads_msgfree(ads, res); + return WERR_NOMEM; + } ads_rc = ads_del_dn(ads, prt_dn); ads_memfree(ads, prt_dn); } |