mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 02:30:24 +01:00
cli: fix array out-of-bounds access on command timeout
Fixes: 4b3297271e
https://bugzilla.redhat.com/show_bug.cgi?id=1573839
This commit is contained in:
parent
7696e6c1fa
commit
92ebd16cee
1 changed files with 1 additions and 1 deletions
|
|
@ -2839,7 +2839,7 @@ connection_cb_info_finish (ConnectionCbInfo *info, gpointer obj)
|
|||
} else {
|
||||
while (info->obj_list->len > 0) {
|
||||
obj = info->obj_list->pdata[info->obj_list->len - 1];
|
||||
g_ptr_array_remove_index (info->obj_list, info->obj_list->len);
|
||||
g_ptr_array_remove_index (info->obj_list, info->obj_list->len - 1);
|
||||
connection_cb_info_obj_list_destroy (info, obj);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue