FS-11308: fix segfault on invalid multipart sdp

This commit is contained in:
Brian West 2018-08-23 09:49:50 -05:00
parent 8b58f6bdfb
commit 723782ec7f
1 changed files with 2 additions and 0 deletions

View File

@ -381,6 +381,8 @@ msg_multipart_t *msg_multipart_parse(su_home_t *home,
char *b, *end;
msg_param_t param;
if (!pl) return NULL;
p = pl->pl_data; len = pl->pl_len; end = p + len;
su_home_init(msg_home(msg));