mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-29 20:39:30 +00:00
FS-9915: [mod_sofia] fix non null terminated parsed sip body being passed in when sending to sip messages in a row on tcp in a single packet
This commit is contained in:
parent
325c50ad48
commit
eea2b139ab
@ -1544,6 +1544,12 @@ static void our_sofia_event_callback(nua_event_t event,
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sip && sip->sip_payload && sip->sip_payload->pl_data) {
|
||||||
|
if (sip->sip_payload->pl_len != strlen(sip->sip_payload->pl_data)) {
|
||||||
|
sip->sip_payload->pl_data = su_strndup(nh->nh_home, sip->sip_payload->pl_data, sip->sip_payload->pl_len);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case nua_r_get_params:
|
case nua_r_get_params:
|
||||||
case nua_i_fork:
|
case nua_i_fork:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user