resolved: refuse modifying DnsAnswer objects that have more than one reference
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Dec 2015 16:41:33 +0000 (17:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Dec 2015 10:28:02 +0000 (11:28 +0100)
commitc296dd2eea308e9ef73eb81f31e9eeaa32c30895
treea1d749c110f1d5d4597274b36029c6dc1f834317
parentd12bf2bdff8d616b7e59fc480c7e610003b494df
resolved: refuse modifying DnsAnswer objects that have more than one reference

DnsAnswer objects should be considered immutable after having passed to
more than one user, i.e. with a reference counter > 1. Enforce that in
code, so that we can track down misuses easier.
src/resolve/resolved-dns-answer.c