diff --git a/src/ulib/utility/socket_ext.cpp b/src/ulib/utility/socket_ext.cpp index a74744d2..cdc6f429 100644 --- a/src/ulib/utility/socket_ext.cpp +++ b/src/ulib/utility/socket_ext.cpp @@ -429,8 +429,10 @@ error: U_INTERNAL_DUMP("errno = %d", errno) U_INTERNAL_ASSERT_MAJOR(byte_written, 0) - if (byte_written < (int)count) + if ((uint32_t)value < count) { + count -= value; + while ((size_t)value >= iov[idx].iov_len) { value -= iov[idx].iov_len; @@ -451,7 +453,6 @@ error: U_INTERNAL_DUMP("errno = %d", errno) iov += idx; iovcnt -= idx; - count -= value; timeoutMS = 0; goto write; diff --git a/tests/examples/TSA/CA/tsaserial b/tests/examples/TSA/CA/tsaserial index 5bba5f60..0baf9488 100644 --- a/tests/examples/TSA/CA/tsaserial +++ b/tests/examples/TSA/CA/tsaserial @@ -1 +1 @@ -B0BC +B0D1 diff --git a/tests/ulib/inp/test.db b/tests/ulib/inp/test.db index 6de4c5ce..9bf470eb 100644 Binary files a/tests/ulib/inp/test.db and b/tests/ulib/inp/test.db differ