From 3d8899bacfeff2e0e528d7667121a9ef0cb990cd Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Mon, 27 Mar 2017 12:37:39 -0500 Subject: [PATCH] Add DTLS sanity check. Change-Id: Ib32612cf6c7ce9213a11b9cba82f630f8cd3564b --- res/res_pjsip_sdp_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c index b66c1aeb82..21de4409c1 100644 --- a/res/res_pjsip_sdp_rtp.c +++ b/res/res_pjsip_sdp_rtp.c @@ -781,7 +781,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; }