diff options
author | Tom Gundersen <teg@jklm.no> | 2015-06-29 14:23:17 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-06-29 14:26:36 +0200 |
commit | b024a9cfb1bee0aa8e143f46db11a4c2a58fb798 (patch) | |
tree | bb24fdf662b52273ae8fe80ee401cde75afdf79c /src/network/networkd-netdev.c | |
parent | 0bf134a734cdde8c1a7a62256e8664fa01125608 (diff) |
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.
Diffstat (limited to 'src/network/networkd-netdev.c')
-rw-r--r-- | src/network/networkd-netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c index ece9ecc251..73d3b6bf6c 100644 --- a/src/network/networkd-netdev.c +++ b/src/network/networkd-netdev.c @@ -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); |