diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-07 12:47:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-11 19:39:58 +0100 |
commit | 0f23174c5c21f90929b3ee39fee48b774949510d (patch) | |
tree | 01ca7db812e315ae92f2f23da30d98211c3fd82a | |
parent | f3cf586d56d03fd75299e73dd3ea29ead2d05a70 (diff) |
resolved: use dns_answer_size() where appropriate to handle NULL DnsAnswer
-rw-r--r-- | src/resolve/resolved-dns-dnssec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-dnssec.c b/src/resolve/resolved-dns-dnssec.c index f2b4bebcec..e71939d999 100644 --- a/src/resolve/resolved-dns-dnssec.c +++ b/src/resolve/resolved-dns-dnssec.c @@ -542,7 +542,7 @@ int dnssec_verify_rrset( } /* Collect all relevant RRs in a single array, so that we can look at the RRset */ - list = newa(DnsResourceRecord *, a->n_rrs); + list = newa(DnsResourceRecord *, dns_answer_size(a)); DNS_ANSWER_FOREACH(rr, a) { r = dns_resource_key_equal(key, rr->key); |