From 037507f790c53ac7e05b26046cb4f4dfa0fa6d24 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 17 Feb 2020 17:52:06 +0100 Subject: [PATCH] shared: fix returning out_len from nm_utils_hash_values_to_array() The only affected caller is nm_modem_manager_get_modems(), which is used by NMDeviceBt for DUN connections. This is rather bad. Fixes: 4154d9618c90 ('bluetooth: refactor BlueZ handling and let NMBluezManager cache ObjectManager data') Fixes: e688e70b372a ('shared: add nm_utils_hash_values_to_array() helper') --- shared/nm-glib-aux/nm-shared-utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/nm-glib-aux/nm-shared-utils.c b/shared/nm-glib-aux/nm-shared-utils.c index c6f2598844..89ee66f7e0 100644 --- a/shared/nm-glib-aux/nm-shared-utils.c +++ b/shared/nm-glib-aux/nm-shared-utils.c @@ -2545,6 +2545,7 @@ nm_utils_hash_values_to_array (GHashTable *hash, user_data); } + NM_SET_OUT (out_len, len); return arr; }