This commit is contained in:
irungentoo 2014-05-22 09:33:03 -04:00
commit 9a33e0f3e1
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -777,11 +777,11 @@ void *handle_timeout ( void *arg )
void add_peer( MSICall *call, int peer_id )
{
if ( !call->peers ) {
call->peers = calloc(sizeof(int), 1);
call->peers = calloc(sizeof(uint32_t), 1);
call->peer_count = 1;
} else {
call->peer_count ++;
call->peers = realloc( call->peers, sizeof(int) * call->peer_count);
call->peers = realloc( call->peers, sizeof(uint32_t) * call->peer_count);
}
call->peers[call->peer_count - 1] = peer_id;