summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-06-29 22:37:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:09 -0500
commitbe25a49a945b87df9f6239058bf54120f6f0c3eb (patch)
tree1570096608f759ca9047187f0a3e2e39f1f18c04
parentd0b0ed90ebc0ed5d4b8c07c8362753df34a00ef9 (diff)
downloadsamba-be25a49a945b87df9f6239058bf54120f6f0c3eb.tar.gz
samba-be25a49a945b87df9f6239058bf54120f6f0c3eb.tar.bz2
samba-be25a49a945b87df9f6239058bf54120f6f0c3eb.zip
r16701: Fix segv when adding a printer caused by not initializing the
realm name in ads_init() in nt_printer_publish(). (This used to be commit a25e75e78db092b3992dfc6f7e2737023d43e2c3)
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 85b7513c62..bcdf0e0462 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -3184,7 +3184,7 @@ WERROR nt_printer_publish(Printer_entry *print_hnd, int snum, int action)
goto done;
}
- ads = ads_init(NULL, NULL, NULL);
+ ads = ads_init(lp_realm(), lp_workgroup(), NULL);
if (!ads) {
DEBUG(3, ("ads_init() failed\n"));
win_rc = WERR_SERVER_UNAVAILABLE;