]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-scope.c
resolved: size the mdns announce answer array properly
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Feb 2017 19:45:40 +0000 (20:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 14 Feb 2017 10:13:48 +0000 (11:13 +0100)
commitfc0195fabf1505d50271c7579657dacd98ad7904
tree49af3cdbff476ae0736bc99706ec054a5c8f699b
parent19fee3ef702ff09cc5ca9531d9e9d985da55aa69
resolved: size the mdns announce answer array properly

The array doesn't grow dynamically, hence pick the right size at the
moment of allocation. Let's simply multiply the number of addresses of
this link by 2, as that's how many RRs we maintain for it.
src/resolve/resolved-dns-scope.c