summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Palus <jpalus@fastmail.com>2021-02-20 14:32:35 +0100
committerThomas Haller <thaller@redhat.com>2021-02-22 13:11:16 +0100
commit2e0752b1bf14615f3bd756b8a48933bc7bf20691 (patch)
tree140ed14658b787676252ef9c98d6708e2420f213
parent1e81827e6fe61abefeca9fa3f825c7e156744013 (diff)
downloadNetworkManager-2e0752b1bf14615f3bd756b8a48933bc7bf20691.tar.gz
iwd: terminate interface_order array with NULL
fixes segfault with iwd backend after upgrade to NetworkManager 1.30.0 Signed-off-by: Jan Palus <jpalus@fastmail.com> Fixes: 43fd93d8f485 ('iwd: Order objects from g_dbus_object_manager_get_objects')
-rw-r--r--src/core/devices/wifi/nm-iwd-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/devices/wifi/nm-iwd-manager.c b/src/core/devices/wifi/nm-iwd-manager.c
index b0b208ac52..def96d8e99 100644
--- a/src/core/devices/wifi/nm-iwd-manager.c
+++ b/src/core/devices/wifi/nm-iwd-manager.c
@@ -1119,6 +1119,7 @@ object_compare_interfaces(gconstpointer a, gconstpointer b)
NM_IWD_KNOWN_NETWORK_INTERFACE,
NM_IWD_NETWORK_INTERFACE,
NM_IWD_DEVICE_INTERFACE,
+ NULL,
};
int rank_a = G_N_ELEMENTS(interface_order);
int rank_b = G_N_ELEMENTS(interface_order);