Fix PACKET_ID_OFFLINE fallinthrough PACKET_ID_NICKNAME

This fixes the PACKET_ID_OFFLINE handling code incorrectly falling through to the PACKET_ID_NICKNAME handling code

This bug resulted in a friend B's name being wiped on friend A's client after B removes A

Fixes tux3/qTox#1967

Fixes #1426
This commit is contained in:
tux3 2015-09-14 19:05:44 +02:00
parent 2ab3b14731
commit 54cec872d8
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -1930,6 +1930,7 @@ static int handle_packet(void *object, int i, uint8_t *temp, uint16_t len)
break;
set_friend_status(m, i, FRIEND_CONFIRMED);
break;
}
case PACKET_ID_NICKNAME: {