FS-11679 [mod_sofia] SIP message sent by FS logged incompletely in tport dump log

This commit is contained in:
joshebosh 2019-03-04 16:26:08 -05:00 committed by Mike Jerris
parent cf7a1d47bf
commit 72986c6919

View File

@ -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;
}