[systemd-commits] src/resolve
Lennart Poettering
lennart at kemper.freedesktop.org
Mon May 18 14:40:03 PDT 2015
src/resolve/resolved-dns-answer.c | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 084cea6cee1471d81e078bea4e7ee5f50a5dc009
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon May 18 23:38:47 2015 +0200
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
diff --git a/src/resolve/resolved-dns-answer.c b/src/resolve/resolved-dns-answer.c
index 7c4ab18..e08eb66 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;
More information about the systemd-commits
mailing list