From: Richard Mudgett Date: Mon, 27 Mar 2017 17:37:39 +0000 (-0500) Subject: Add DTLS sanity check. X-Git-Tag: 13.16.0-rc1~73^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9529cbb210b7f1d280de42c74b9e3bb79e2af86;p=thirdparty%2Fasterisk.git Add DTLS sanity check. Change-Id: Ib32612cf6c7ce9213a11b9cba82f630f8cd3564b --- diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c index 52ae65cc7b..1bcda800fa 100644 --- a/res/res_pjsip_sdp_rtp.c +++ b/res/res_pjsip_sdp_rtp.c @@ -767,7 +767,7 @@ static void apply_dtls_attrib(struct ast_sip_session_media *session_media, struct ast_rtp_engine_dtls *dtls = ast_rtp_instance_get_dtls(session_media->rtp); pj_str_t *value; - if (!attr->value.ptr) { + if (!attr->value.ptr || !dtls) { return; }