]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix seg in ice rtp code
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 17 Jan 2015 00:22:27 +0000 (18:22 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 17 Jan 2015 06:22:11 +0000 (00:22 -0600)
src/switch_rtp.c

index 264e9b7ad61558f6329edb8236dc1ce9cb0be3d7..e4850bd13500437ffba20f9800c71594aa8b85a1 100644 (file)
@@ -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) {