printing: drop pcap_cache_loaded() guard around load_printers()
authorDavid Disseldorp <ddiss@samba.org>
Tue, 29 Jan 2019 00:50:15 +0000 (01:50 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Feb 2019 11:31:45 +0000 (12:31 +0100)
commit3ec3f9dcb3f7c28ac9a0d9b0f36446766e6e47ea
treef7878dd878aaa942021d2b36cc5d763537c0cadd
parent455099bd9dd51487153ff271dafc29f77c21b76c
printing: drop pcap_cache_loaded() guard around load_printers()

Add the pcap_cache_loaded() check to load_printers() and return early
if it returns false. This simplifies callers in preparation for checking
lp_load_printers() in the printcap cache update code-path.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13766

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
(cherry picked from commit 0ae7c3144a30910adb1e54cf46d54d42a1036839)
source3/printing/load.c
source3/printing/queue_process.c
source3/printing/spoolssd.c