From 46cf8a4dce0599ce428dd129b99603ced0b682f4 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 16 Jan 2015 18:22:27 -0600 Subject: [PATCH] fix seg in ice rtp code --- src/switch_rtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 264e9b7ad6..e4850bd135 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1014,6 +1014,9 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d //ice->ice_params->cands[ice->ice_params->chosen][ice->proto].priority; for (j = 0; j < 2; j++) { + if (!icep[j] || !icep[j]->ice_params) { + continue; + } for (i = 0; i < icep[j]->ice_params->cand_idx; i++) { if (icep[j]->ice_params && icep[j]->ice_params->cands[i][icep[j]->proto].priority == *pri) { if (j == IPR_RTP) {