diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2013-12-04 16:09:25 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2013-12-04 16:11:10 +0100 |
commit | b7d6c61fe7d225f70db0468f7a09253b57614a99 (patch) | |
tree | 6d9a5a1210efc61c0055f4544377f1335e6375f2 /src/nm-manager.c | |
parent | 41d3efbd7363de70de0499e325ad80105a5aeea7 (diff) | |
download | NetworkManager-b7d6c61fe7d225f70db0468f7a09253b57614a99.tar.gz |
manager: handle NULL ifname in nm_manager_can_device_auto_connect gracefully
Diffstat (limited to 'src/nm-manager.c')
-rw-r--r-- | src/nm-manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c index 3c55aed28b..395bcdbcf3 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -3554,6 +3554,9 @@ nm_manager_can_device_auto_connect (NMManager *manager, const char *ifname) { NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (manager); + if (!ifname) + return FALSE; + return !g_hash_table_contains (priv->noauto_sw_devices, ifname); } |