]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: check stored object is euivalent to what we want to remove 12738/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jun 2019 15:42:05 +0000 (00:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jun 2019 15:45:46 +0000 (00:45 +0900)
commit9ee92e7ed8aa9494d963e09099cf3f80f65d3314
tree62a42bfc5dfe3ddb1cf01177d1d9eda21631f096
parent9f08a578a80a5fc759b9ce7299ab7fdd2e60c814
network: check stored object is euivalent to what we want to remove

When object A is stored in Manager::rules and B is in ::rules_foreign,
and compare function for the object cannot distinguish them,
then freeing A causes B to be removed from rules_foreign or vice versa.

Hopefully fixes #12731.
src/network/networkd-routing-policy-rule.c