mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user