(closes issue ASTERISK-22320)
Reported by: Matt Jordan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396993
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
pjsip_tx_data *tdata;
- char buf[body->len];
+ char buf[body ? body->len : 0];
char *cur = buf;
char *line;
char event = '\0';
unsigned int duration = 0;
- if (!ast_sip_is_content_type(&body->content_type, "application", "dtmf-relay")) {
+ if (!body || !ast_sip_is_content_type(&body->content_type, "application", "dtmf-relay")) {
return 0;
}