api: keep AddressSanitizer happy 53/38053/3
authorBenoît Ganne <bganne@cisco.com>
Thu, 26 Jan 2023 18:28:16 +0000 (19:28 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 27 Jan 2023 16:38:28 +0000 (16:38 +0000)
commita769a508f4f3bb61b372c1382cbcfc531a884d31
treefd84ad33d703c10a03f9c239eb67f0111eb66361
parent8a1d07922b20f0c960af4b99c642aec08ae1b9c4
api: keep AddressSanitizer happy

Playing with vector length prevents AddressSanitizer to track accessible
memory. Make sure we update the size of the vector once we received the
data.

Type: fix

Change-Id: If7808254d46d7ab37d516e3de49e3583d07bb9ff
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vlibmemory/socket_client.c