diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-05-18 23:38:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-05-18 23:38:47 +0200 |
commit | 084cea6cee1471d81e078bea4e7ee5f50a5dc009 (patch) | |
tree | adfe6dff511f8f50a640bf69bb63a6308eeb254a /src | |
parent | cab5b05903096e1c9cf5575ccc73f89d15c8db69 (diff) |
resolved: allow DnsAnswer objects with no space for RRs
They might be created as result of merged answer sets, hence accept
them.
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030834.html
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/resolved-dns-answer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-answer.c b/src/resolve/resolved-dns-answer.c index 7c4ab18b58..e08eb667cc 100644 --- a/src/resolve/resolved-dns-answer.c +++ b/src/resolve/resolved-dns-answer.c @@ -25,8 +25,6 @@ DnsAnswer *dns_answer_new(unsigned n) { DnsAnswer *a; - assert(n > 0); - a = malloc0(offsetof(DnsAnswer, rrs) + sizeof(DnsResourceRecord*) * n); if (!a) return NULL; |