mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
resolved: use dns_answer_isempty() where appropriate
This commit is contained in:
parent
3b7006cb44
commit
77db3caee3
@ -693,7 +693,7 @@ int dns_cache_put(
|
||||
* short time.) */
|
||||
|
||||
if (IN_SET(rcode, DNS_RCODE_SUCCESS, DNS_RCODE_NXDOMAIN)) {
|
||||
if (dns_answer_size(answer) <= 0) {
|
||||
if (dns_answer_isempty(answer)) {
|
||||
if (key) {
|
||||
char key_str[DNS_RESOURCE_KEY_STRING_MAX];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user