Commit f439363e authored by Brian Wellington's avatar Brian Wellington
Browse files

minor code simplification

parent 04ab4ecb
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: validator.c,v 1.84 2000/10/31 03:22:02 marka Exp $ */
/* $Id: validator.c,v 1.85 2000/11/08 00:51:24 bwelling Exp $ */
#include <config.h>
......@@ -559,21 +559,19 @@ nullkeyvalidated(isc_task_t *task, isc_event_t *event) {
return;
validator_log(val, ISC_LOG_DEBUG(3), "in nullkeyvalidated");
LOCK(&val->lock);
if (eresult == ISC_R_SUCCESS) {
validator_log(val, ISC_LOG_DEBUG(3),
"proved that name is in an unsecure domain");
validator_log(val, ISC_LOG_DEBUG(3), "marking as answer");
LOCK(&val->lock);
val->event->rdataset->trust = dns_trust_answer;
validator_done(val, ISC_R_SUCCESS);
UNLOCK(&val->lock);
} else {
LOCK(&val->lock);
result = proveunsecure(val, ISC_TRUE);
if (result != DNS_R_WAIT)
validator_done(val, result);
UNLOCK(&val->lock);
}
UNLOCK(&val->lock);
/*
* Free stuff from the event.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment