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:46 +0000 (12:31 +0100)
commit32d6bf67801e66cf7472788a520c270f454d924d
treea6a120e11dc9d8978aa597a70b0a02a5e98fcabd
parent6e0514d273e3fe5e85a48ee4b1c3e3f066f1b6c3
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