]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
"got insecure response; parent indicates it should be secure" wrongly emitted [RT...
authorMark Andrews <marka@isc.org>
Tue, 9 Jun 2009 22:57:09 +0000 (22:57 +0000)
committerMark Andrews <marka@isc.org>
Tue, 9 Jun 2009 22:57:09 +0000 (22:57 +0000)
lib/dns/validator.c

index cef8a60712f0e486c5ccc303585ddbea7cf5376b..88f661a76a2bce467b2427d0b4ed021ee2193148 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: validator.c,v 1.176 2009/05/07 23:47:44 tbox Exp $ */
+/* $Id: validator.c,v 1.177 2009/06/09 22:57:09 marka Exp $ */
 
 #include <config.h>
 
@@ -3580,7 +3580,7 @@ validator_start(isc_task_t *task, isc_event_t *event) {
 
                val->attributes |= VALATTR_INSECURITY;
                result = proveunsecure(val, ISC_FALSE, ISC_FALSE);
-               if (result != DNS_R_NOTINSECURE)
+               if (result == DNS_R_NOTINSECURE)
                        validator_log(val, ISC_LOG_INFO,
                                      "got insecure response; "
                                      "parent indicates it should be secure");