From 86173b2d4624dfe7a563fcf86a0f0c5695cd1d2a Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Thu, 10 Dec 2020 01:15:59 +0100 Subject: [HICN-658] Return error if buffer allocation fails in memif connector. Signed-off-by: Mauro Sardara Change-Id: I5b0d40a8f5f713109f492609bf1c9dcede189b68 --- libtransport/src/core/memif_connector.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libtransport/src/core/memif_connector.cc b/libtransport/src/core/memif_connector.cc index 553aab42a..49e1cf027 100644 --- a/libtransport/src/core/memif_connector.cc +++ b/libtransport/src/core/memif_connector.cc @@ -267,6 +267,7 @@ int MemifConnector::bufferAlloc(long n, uint16_t qid) { if (TRANSPORT_EXPECT_FALSE(err != MEMIF_ERR_SUCCESS)) { TRANSPORT_LOGE("memif_buffer_alloc: %s", memif_strerror(err)); + return -1; } c->tx_buf_num += r; -- cgit 1.2.3-korg