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:02:17 +0000 (13:02 -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 df92b7a0698ef699ed31a5bbc82b6741362cedfb..82fc68d66fd0fc89919a62d2d6ac2755e90f43fc 100644 (file)
@@ -253,7 +253,7 @@ retry:
                        goto end;
                }
        }
-       ret = len;
+
 end:
        return ret;
 }
@@ -352,7 +352,6 @@ retry:
                        goto end;
                }
        }
-       ret = len;
 end:
        return ret;
 }
This page took 0.029326 seconds and 4 git commands to generate.