[Asterisk-code-review] Add DTLS sanity check. (asterisk[14])

Richard Mudgett asteriskteam at digium.com
Mon Mar 27 16:42:52 CDT 2017


Richard Mudgett has uploaded a new change for review. ( https://gerrit.asterisk.org/5339 )

Change subject: Add DTLS sanity check.
......................................................................

Add DTLS sanity check.

Change-Id: Ib32612cf6c7ce9213a11b9cba82f630f8cd3564b
---
M res/res_pjsip_sdp_rtp.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/39/5339/1

diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c
index 1552b36..95aae55 100644
--- a/res/res_pjsip_sdp_rtp.c
+++ b/res/res_pjsip_sdp_rtp.c
@@ -777,7 +777,7 @@
 	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;
 	}
 

-- 
To view, visit https://gerrit.asterisk.org/5339
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib32612cf6c7ce9213a11b9cba82f630f8cd3564b
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list