diff --git a/lib/dns/validator.c b/lib/dns/validator.c index 4ab4ee407e..3dacbd1131 100644 --- a/lib/dns/validator.c +++ b/lib/dns/validator.c @@ -973,7 +973,7 @@ create_fetch(dns_validator_t *val, dns_name_t *name, dns_rdatatype_t type, if (check_deadlock(val, name, type, NULL, NULL)) { validator_log(val, ISC_LOG_DEBUG(3), "deadlock found (create_fetch)"); - return DNS_R_NOVALIDSIG; + return ISC_R_DEADLOCK; } if ((val->options & DNS_VALIDATOR_NOCDFLAG) != 0) { @@ -1017,7 +1017,7 @@ create_validator(dns_validator_t *val, dns_name_t *name, dns_rdatatype_t type, if (check_deadlock(val, name, type, rdataset, sig)) { validator_log(val, ISC_LOG_DEBUG(3), "deadlock found (create_validator)"); - return DNS_R_NOVALIDSIG; + return ISC_R_DEADLOCK; } /* OK to clear other options, but preserve NOCDFLAG and NONTA. */ diff --git a/lib/isc/include/isc/result.h b/lib/isc/include/isc/result.h index 129cdef751..f9563e3df0 100644 --- a/lib/isc/include/isc/result.h +++ b/lib/isc/include/isc/result.h @@ -96,6 +96,7 @@ typedef enum isc_result { ISC_R_HTTP2ALPNERROR, /*%< ALPN for HTTP/2 failed */ ISC_R_DOTALPNERROR, /*%< ALPN for DoT failed */ ISC_R_INVALIDPROTO, /*%< invalid protocol */ + ISC_R_DEADLOCK, /*%< deadlock found */ DNS_R_LABELTOOLONG, DNS_R_BADESCAPE, diff --git a/lib/isc/result.c b/lib/isc/result.c index 6ba7f99484..29b8bc65f4 100644 --- a/lib/isc/result.c +++ b/lib/isc/result.c @@ -96,6 +96,7 @@ static const char *description[ISC_R_NRESULTS] = { [ISC_R_HTTP2ALPNERROR] = "ALPN for HTTP/2 failed", [ISC_R_DOTALPNERROR] = "ALPN for DoT failed", [ISC_R_INVALIDPROTO] = "invalid protocol", + [ISC_R_DEADLOCK] = "deadlock found", [DNS_R_LABELTOOLONG] = "label too long", [DNS_R_BADESCAPE] = "bad escape",