Commit 92ebd16c authored by Beniamino Galvani's avatar Beniamino Galvani

cli: fix array out-of-bounds access on command timeout

Fixes: 4b329727

https://bugzilla.redhat.com/show_bug.cgi?id=1573839
parent 7696e6c1
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment