diff options
author | Gerald Carter <jerry@samba.org> | 2006-06-29 22:41:06 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2006-06-29 22:41:06 +0000 |
commit | ed1360efa18f95a92c3992b0cce147b328990c3f (patch) | |
tree | 35c37a5a67fa1d9870998ed71baf38a70f296013 | |
parent | 3a0df993f19e3e00059029a166c256e4c5b54656 (diff) | |
download | samba-ed1360efa18f95a92c3992b0cce147b328990c3f.tar.gz samba-ed1360efa18f95a92c3992b0cce147b328990c3f.tar.xz samba-ed1360efa18f95a92c3992b0cce147b328990c3f.zip |
r16703: add crash fix in printer publishing code
-rw-r--r-- | WHATSNEW.txt | 2 | ||||
-rw-r--r-- | source/printing/nt_printing.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/WHATSNEW.txt b/WHATSNEW.txt index c7131874205..b0593f6e828 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -162,6 +162,8 @@ o Nicholas Brealey <nick@brealey.org> o Gerald (Jerry) Carter <jerry@samba.org> * Use system provided killproc() in RedHat init scripts for more robust shutdown. + * Fix a crash in the printer publishing code when adding a + new printer via the APW. o Guenther Deschner <gd@samba.org> diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 5c4039722e1..9395275f8ac 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -3169,7 +3169,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; |