s3-smbd: Fix flooding the logs with records we don't find in pcap.
authorAndreas Schneider <asn@samba.org>
Tue, 28 Aug 2012 12:17:22 +0000 (14:17 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 28 Aug 2012 14:38:55 +0000 (16:38 +0200)
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Aug 28 16:38:55 CEST 2012 on sn-devel-104

source3/smbd/server_reload.c

index e5d71027445c5fa7cd44963005706156fa495a0b..3a8f5bb920bf1654d32f3dcdbf8ce43a0487ee2d 100644 (file)
@@ -98,7 +98,7 @@ void delete_and_reload_printers(struct tevent_context *ev,
                pname = lp_printername(session_info, snum);
 
                /* check printer, but avoid removing non-autoloaded printers */
-               if (!pcap_printername_ok(pname) && lp_autoloaded(snum)) {
+               if (lp_autoloaded(snum) && !pcap_printername_ok(pname)) {
                        DEBUG(3, ("removing stale printer %s\n", pname));
 
                        if (is_printer_published(session_info, session_info,