summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/res_pjsip_dtmf_info.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_pjsip_dtmf_info.c b/res/res_pjsip_dtmf_info.c
index 72f93dc46..6a1ce20ff 100644
--- a/res/res_pjsip_dtmf_info.c
+++ b/res/res_pjsip_dtmf_info.c
@@ -34,8 +34,9 @@
static int is_media_type(pjsip_rx_data *rdata, char *subtype)
{
- return !pj_strcmp2(&rdata->msg_info.ctype->media.type, "application") &&
- !pj_strcmp2(&rdata->msg_info.ctype->media.subtype, subtype);
+ return rdata->msg_info.ctype
+ && !pj_strcmp2(&rdata->msg_info.ctype->media.type, "application")
+ && !pj_strcmp2(&rdata->msg_info.ctype->media.subtype, subtype);
}
static void send_response(struct ast_sip_session *session,