mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
FS-11679 [mod_sofia] SIP message sent by FS logged incompletely in tport dump log
This commit is contained in:
parent
cf7a1d47bf
commit
72986c6919
@ -386,7 +386,7 @@ void tport_dump_iovec(tport_t const *self, msg_t *msg,
|
||||
size_t len = iov[i].mv_len;
|
||||
if (len > n)
|
||||
len = n;
|
||||
if (fwrite(iov[i].mv_base, len, 1, mr->mr_dump_file) != len)
|
||||
if (fwrite(iov[i].mv_base, len, 1, mr->mr_dump_file) != 1)
|
||||
break;
|
||||
n -= len;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user