1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-04 22:21:55 +03:00

Merge pull request #2687 from poettering/resolved-fix-2683

networkd: make sure we allocate the NTA set before we add items to it
This commit is contained in:
Daniel Mack 2016-02-22 09:59:07 +01:00
commit 357726c8be

View 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();