mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 20:25:25 +03:00
parent
91fd39687a
commit
e55fc5b094
@ -649,12 +649,13 @@ int dns_cache_put(
|
|||||||
* short time.) */
|
* short time.) */
|
||||||
|
|
||||||
if (IN_SET(rcode, DNS_RCODE_SUCCESS, DNS_RCODE_NXDOMAIN)) {
|
if (IN_SET(rcode, DNS_RCODE_SUCCESS, DNS_RCODE_NXDOMAIN)) {
|
||||||
|
|
||||||
if (dns_answer_size(answer) <= 0) {
|
if (dns_answer_size(answer) <= 0) {
|
||||||
|
if (key) {
|
||||||
char key_str[DNS_RESOURCE_KEY_STRING_MAX];
|
char key_str[DNS_RESOURCE_KEY_STRING_MAX];
|
||||||
|
|
||||||
log_debug("Not caching negative entry without a SOA record: %s",
|
log_debug("Not caching negative entry without a SOA record: %s",
|
||||||
dns_resource_key_to_string(key, key_str, sizeof key_str));
|
dns_resource_key_to_string(key, key_str, sizeof key_str));
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user