summaryrefslogtreecommitdiff
path: root/res/res_pjsip_sdp_rtp.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2017-03-27 12:37:39 -0500
committerRichard Mudgett <rmudgett@digium.com>2017-03-27 15:43:03 -0600
commit3d8899bacfeff2e0e528d7667121a9ef0cb990cd (patch)
tree053e53070d0b2ba20fd4e8e18b92d161513d3d12 /res/res_pjsip_sdp_rtp.c
parent3bdf876b045653c427df0a7a771e90dd15fa1527 (diff)
Add DTLS sanity check.
Change-Id: Ib32612cf6c7ce9213a11b9cba82f630f8cd3564b
Diffstat (limited to 'res/res_pjsip_sdp_rtp.c')
-rw-r--r--res/res_pjsip_sdp_rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c
index b66c1aeb8..21de4409c 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;
}