diff --git a/daemon/sdp.c b/daemon/sdp.c index 64fb45a15..46715e17a 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -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:");