mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
networkd: fix segfault when cancelling callbacks
This only happens when something has gone wrong, so is not easy to hit. However, if a bridge (say) is configured on a system without bridge support we will hit this. Fixes issue #299.
This commit is contained in:
parent
0bf134a734
commit
b024a9cfb1
@ -92,7 +92,7 @@ static void netdev_cancel_callbacks(NetDev *netdev) {
|
||||
assert(netdev->manager);
|
||||
assert(netdev->manager->rtnl);
|
||||
|
||||
callback->callback(netdev->manager->rtnl, m, link);
|
||||
callback->callback(netdev->manager->rtnl, m, callback->link);
|
||||
}
|
||||
|
||||
LIST_REMOVE(callbacks, netdev->callbacks, callback);
|
||||
|
Loading…
Reference in New Issue
Block a user