fix force-relay segfault

pull/114/head
Richard Fuchs 11 years ago
parent f398d837df
commit 80b8815c60

@ -2014,7 +2014,7 @@ int sdp_replace(struct sdp_chopper *chop, GQueue *sessions, struct call_monologu
insert_crypto(call_media, chop);
insert_dtls(call_media, chop);
if (MEDIA_ISSET(call_media, ICE)) {
if (MEDIA_ISSET(call_media, ICE) && call_media->ice_agent) {
chopper_append_c(chop, "a=ice-ufrag:");
chopper_append_str(chop, &call_media->ice_agent->ufrag[1]);
chopper_append_c(chop, "\r\na=ice-pwd:");

Loading…
Cancel
Save