diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-02-21 22:27:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-02-21 22:27:01 +0100 |
commit | cbbf38aefc7a3d18d68f0d8fffb6b59d77948690 (patch) | |
tree | a98bb3785aac759383995b5e64137770ace9064a /src/network/networkd-network.c | |
parent | 714c62b46379abb7558c544665522aca91691e10 (diff) |
networkd: make sure we allocate the NTA set before we add items to it
See: #2683
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r-- | src/network/networkd-network.c | 4 |
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(); |