]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: pin reply slot while we execute callback
authorLennart Poettering <lennart@amutable.com>
Mon, 23 Feb 2026 12:25:17 +0000 (13:25 +0100)
committerLennart Poettering <lennart@amutable.com>
Tue, 24 Feb 2026 16:09:33 +0000 (17:09 +0100)
commit332ecf40f24b291178ad370a448b6a5227700ae2
tree8c510c607ec9fc7c825ca139731137fe918c767f
parentc8aa7b152f423cc2147afbb8b9245f056103d1f7
sd-netlink: pin reply slot while we execute callback

The callback might drop the last ref to the slot object, and we still
want to access it. Hence do what we usually do in these cases: keep an
extra reference while processing the callback.
src/libsystemd/sd-netlink/sd-netlink.c