In group.c in method handle_message_packet_group the variable index can change if message is GROUP_MESSAGE_KILL_PEER_ID see:
|
delpeer(g_c, groupnumber, index, userdata); |
At the end of the method index is pointing to an eventually deleted entry:
|
bool relay_back = id_equal(g->group[index].real_pk, real_pk); |
In
group.cin methodhandle_message_packet_groupthe variableindexcan change if message isGROUP_MESSAGE_KILL_PEER_IDsee:c-toxcore/toxcore/group.c
Line 2695 in 03a5114
At the end of the method
indexis pointing to an eventually deleted entry:c-toxcore/toxcore/group.c
Line 2764 in 03a5114