]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: do not trigger assertion by calling socket_broadcast_group_unref() with...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Jun 2021 17:30:52 +0000 (02:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Jun 2021 17:47:34 +0000 (02:47 +0900)
commiteee15fff4005c3a7c7dffba8776a96c050464b1a
treefc29b67a86a88aa148c68381af15cb2b81316143
parentdb4735b7dba6a9011cbece6bf180d0ff07d0ce6a
sd-netlink: do not trigger assertion by calling socket_broadcast_group_unref() with an arbitrary group number

socket_broadcast_group_unref() is only called in netlink_slot_disconnect(),
so the assertion should not be triggered as the match slot was
successfully created.

But, we usually design `_ref/unref()` functions as they can be called
for any inputs. So, let's also follow the design rule here.
src/libsystemd/sd-netlink/netlink-socket.c