summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-10-13 19:40:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:57 -0500
commit7df1ed060be1fe730f78eb4665cdb5f1a3fef0c9 (patch)
tree49df8734ff894d36c906e9872cdf50d49640f44f /source3/printing
parent64666f51ae83b7200c25d3cd5009a9ae4ece4e0b (diff)
downloadsamba-7df1ed060be1fe730f78eb4665cdb5f1a3fef0c9.tar.gz
samba-7df1ed060be1fe730f78eb4665cdb5f1a3fef0c9.tar.bz2
samba-7df1ed060be1fe730f78eb4665cdb5f1a3fef0c9.zip
r2955: fixing a segfault uncovered by the changes for BUG 1519
(This used to be commit 1664395257eb2425246e200ebde4384aa54484a4)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 81d792463a..6474516ebc 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -380,9 +380,11 @@ BOOL nt_printing_init(void)
msgs. This is done in claim_connection() */
- win_rc = check_published_printers();
- if (!W_ERROR_IS_OK(win_rc))
- DEBUG(0, ("nt_printing_init: error checking published printers: %s\n", dos_errstr(win_rc)));
+ if ( lp_security() == SEC_ADS ) {
+ win_rc = check_published_printers();
+ if (!W_ERROR_IS_OK(win_rc))
+ DEBUG(0, ("nt_printing_init: error checking published printers: %s\n", dos_errstr(win_rc)));
+ }
return True;
}