From b024a9cfb1bee0aa8e143f46db11a4c2a58fb798 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 29 Jun 2015 14:23:17 +0200 Subject: [PATCH] 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. --- src/network/networkd-netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c index ece9ecc2511..73d3b6bf6c2 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);