Fix: send/received actual size is overwritten by 'expected' size
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 9 Jul 2020 20:22:19 +0000 (16:22 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 29 Jul 2020 17:03:27 +0000 (13:03 -0400)
Observed issue
==============

None.

Cause
=====

None.

Solution
========

Return the actual send/received size. Caller code correctly handles
partial send/receive.

Known drawbacks
=========

None

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ie52c39d0ab778108e3fde1b2375c0535caec97b1

src/common/unix.c

index 37bb1a711ca26d1c17c0db9953651c81449867d8..141e85233ed7dea5c4a2c8b4deb1cab0dbafb72a 100644 (file)
@@ -263,7 +263,7 @@ retry:
                        goto end;
                }
        }
-       ret = len;
+
 end:
        return ret;
 }
@@ -362,7 +362,6 @@ retry:
                        goto end;
                }
        }
-       ret = len;
 end:
        return ret;
 }
This page took 0.027602 seconds and 4 git commands to generate.