]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: make sure we allocate the NTA set before we add items to it 2687/head
authorLennart Poettering <lennart@poettering.net>
Sun, 21 Feb 2016 21:27:01 +0000 (22:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Feb 2016 21:27:01 +0000 (22:27 +0100)
See: #2683

src/network/networkd-network.c

index 431579009336bf3b97951ca4607461c4e1b746f4..54f76fe206c0c7226611f1ab7c1a8112d598ad69 100644 (file)
@@ -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();