mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 01:28:42 +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
f0a0bbd728
commit
62e2928889
@ -1601,6 +1601,12 @@ static void our_sofia_event_callback(nua_event_t event,
|
||||
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) {
|
||||
case nua_r_get_params:
|
||||
case nua_i_fork:
|
||||
|
Loading…
x
Reference in New Issue
Block a user