Skip to content

Commit

Permalink
fix parse m-line
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos Oancea committed Jan 21, 2022
1 parent 95d7c42 commit a953f25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libsofia-sip-ua/sdp/sdp_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,10 @@ static void parse_media(sdp_parser_t *p, char *r, sdp_media_t **result)
PARSE_ALLOC(p, sdp_list_t, l);
*fmt = l;
l->l_text = token(&r, SPACE TAB, TOKEN, SPACE TAB);
if (!l->l_text) {
parsing_error(p, "m= invalid");
return;
}
fmt = &l->l_next;
}
}
Expand Down

0 comments on commit a953f25

Please sign in to comment.