]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: first increment the reference counter
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 6 May 2022 12:32:37 +0000 (21:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 7 May 2022 06:14:41 +0000 (15:14 +0900)
commit4ce30e4de05971ea93bc727695000d0025eb1591
tree8dc5c56b4fac9205f2f20f4b10a33c99044a9dd5
parent6edf21dba76ad5dc36c6efaf2499a8376cb07e09
resolve: first increment the reference counter

When `exist->rr` and `rr` point to the same object, then it may be freed by
the `dns_resource_record_unref()`.
src/resolve/resolved-dns-answer.c