From 304e21164081e7c1c630bfa89485fdb55787358f Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 14 Aug 2018 18:13:57 +0200 Subject: [PATCH] device: cope with devices' failure to provide reason for incompatibility Pretty sure we get this right now, but if we don't let's fail more sensibly. --- src/devices/nm-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index f2a9f3fa52..0427039b8b 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -13432,6 +13432,7 @@ _nm_device_check_connection_available (NMDevice *self, if (!nm_device_check_connection_compatible (self, connection, error ? &local : NULL)) { if (error) { + g_return_val_if_fail (local, FALSE); nm_utils_error_set (error, local->domain == NM_UTILS_ERROR ? local->code