diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-03-27 12:37:39 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-03-27 16:42:09 -0500 |
commit | a9529cbb210b7f1d280de42c74b9e3bb79e2af86 (patch) | |
tree | e031b3e15503a6359b66a8411d1b624f281473d0 /res | |
parent | 39fff2ebf9356eaceac6aa0c783a8616cc3b9491 (diff) |
Add DTLS sanity check.
Change-Id: Ib32612cf6c7ce9213a11b9cba82f630f8cd3564b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip_sdp_rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c index 52ae65cc7..1bcda800f 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; } |