mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 05:29:22 +00:00
FS-11308: fix segfault on invalid multipart sdp
This commit is contained in:
parent
8b58f6bdfb
commit
723782ec7f
@ -381,6 +381,8 @@ msg_multipart_t *msg_multipart_parse(su_home_t *home,
|
|||||||
char *b, *end;
|
char *b, *end;
|
||||||
msg_param_t param;
|
msg_param_t param;
|
||||||
|
|
||||||
|
if (!pl) return NULL;
|
||||||
|
|
||||||
p = pl->pl_data; len = pl->pl_len; end = p + len;
|
p = pl->pl_data; len = pl->pl_len; end = p + len;
|
||||||
|
|
||||||
su_home_init(msg_home(msg));
|
su_home_init(msg_home(msg));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user