summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2016-02-22 09:59:07 +0100
committerDaniel Mack <github@zonque.org>2016-02-22 09:59:07 +0100
commit357726c8be397711fb195b3995eee5891326d8e4 (patch)
treeb52078996bab07a691191b20228facf2fa83676e
parent2c0608a33d6575f437dfc2db5394b9b572b19ff8 (diff)
parentcbbf38aefc7a3d18d68f0d8fffb6b59d77948690 (diff)
Merge pull request #2687 from poettering/resolved-fix-2683
networkd: make sure we allocate the NTA set before we add items to it
-rw-r--r--src/network/networkd-network.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 4315790093..54f76fe206 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();