diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-08-14 18:13:57 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2018-08-14 18:23:23 +0200 |
commit | 304e21164081e7c1c630bfa89485fdb55787358f (patch) | |
tree | de386de25b2e6776d14dfaa8aced22aebb4a6ee3 | |
parent | 587de119035112595109290f927480f954b1693d (diff) | |
download | NetworkManager-304e21164081e7c1c630bfa89485fdb55787358f.tar.gz |
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.
-rw-r--r-- | src/devices/nm-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |