From: Lennart Poettering Date: Sun, 21 Feb 2016 21:27:01 +0000 (+0100) Subject: networkd: make sure we allocate the NTA set before we add items to it X-Git-Tag: v230~332^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2687%2Fhead;p=thirdparty%2Fsystemd.git networkd: make sure we allocate the NTA set before we add items to it See: #2683 --- diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 43157900933..54f76fe206c 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -994,6 +994,10 @@ int config_parse_dnssec_negative_trust_anchors( continue; } + r = set_ensure_allocated(&n->dnssec_negative_trust_anchors, &dns_name_hash_ops); + if (r < 0) + return log_oom(); + r = set_put(n->dnssec_negative_trust_anchors, w); if (r < 0) return log_oom();