summaryrefslogtreecommitdiffstats
path: root/libtransport/src
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-12-10 01:15:59 +0100
committerMauro Sardara <msardara@cisco.com>2020-12-10 00:21:22 +0000
commit86173b2d4624dfe7a563fcf86a0f0c5695cd1d2a (patch)
tree7d8d9685bc4763be11da2852a9ced7e1dab0a818 /libtransport/src
parent514b0ba878d93626e9b6a94441c4fac428c47914 (diff)
[HICN-658] Return error if buffer allocation fails in memif connector.
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I5b0d40a8f5f713109f492609bf1c9dcede189b68
Diffstat (limited to 'libtransport/src')
-rw-r--r--libtransport/src/core/memif_connector.cc1
1 files changed, 1 insertions, 0 deletions
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;