From 1e2ce092b30f9c8abeda9237e2c63c16dd08f577 Mon Sep 17 00:00:00 2001 From: Arnaldo Pereira Date: Thu, 2 Dec 2010 13:10:57 -0200 Subject: [PATCH] freetdm: ftmod_r2 - fixed segfault --- libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c b/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c index 6440c796b2..8222fa413f 100644 --- a/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c +++ b/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c @@ -1496,10 +1496,9 @@ static void *ftdm_r2_run(ftdm_thread_t *me, void *obj) ftdm_mutex_lock(ftdmchan->mutex); - r2chan = R2CALL(span->channels[i])->r2chan; - ftdm_r2_state_advance_all(ftdmchan); + r2chan = R2CALL(ftdmchan)->r2chan; openr2_chan_process_signaling(r2chan); ftdm_r2_state_advance_all(ftdmchan);