]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11679 [mod_sofia] SIP message sent by FS logged incompletely in tport dump log
authorjoshebosh <bitbucket@joshebosh.email>
Mon, 4 Mar 2019 21:26:08 +0000 (16:26 -0500)
committerMike Jerris <mike@signalwire.com>
Thu, 6 Jun 2019 15:44:27 +0000 (11:44 -0400)
libs/sofia-sip/libsofia-sip-ua/tport/tport_logging.c

index 9bf65cff11c5b99d5818e057fc19fbcf2820bde2..53dea29060d982dacae0d528d99ee09e60652bae 100644 (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;
   }