s3-printing: remove pcap_cache_loaded asserts
authorDavid Disseldorp <ddiss@suse.de>
Mon, 17 Jan 2011 15:09:32 +0000 (16:09 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 18 Aug 2011 19:14:48 +0000 (21:14 +0200)
commit4bfaf8cb4702f77bb546d3739bbacd5ac5187e33
treefd71b08e5907de177f67582509af192d95b2c99e
parent004564cd754fc471d0954b79e8d9ba970bceba0e
s3-printing: remove pcap_cache_loaded asserts

pcap_cache_loaded() assertions were added to the (re)load_printers()
functions, to ensure the caller had called pcap_cache_reload() prior to
reloading printer shares.

The problem is, pcap_cache_loaded() returns false if the the pcap_cache
contains no printer entries. i.e. pcap_cache_reload() has run but not
detected any printers.

Remove these assertions, correct call ordering is already enforced.

Signed-off-by: Günther Deschner <gd@samba.org>
The last 3 patches address bug #7836 (A newly added printer isn't visbile to
clients).
(cherry picked from commit da9b2d9d58193ed3da36c2f8ff1e41a1e743ba07)
source3/printing/load.c
source3/smbd/server.c