diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2018-09-27 10:26:35 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-27 18:32:22 +0000 |
commit | 412e7b64f9c0b3d5802eee4cd219daff2fcd3dd6 (patch) | |
tree | 16e0f848f98aef7c2f3db82d2e7dd9072eb7ed04 /extras/libmemif/src/socket.c | |
parent | b1be2a0bb8d9a72bf0b868befaf5e966b9c26edb (diff) |
libmemif: external region bugfix
Change-Id: I7dbece80dda917ff78f53f8f4074132895aed316
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'extras/libmemif/src/socket.c')
-rw-r--r-- | extras/libmemif/src/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/libmemif/src/socket.c b/extras/libmemif/src/socket.c index 7c4bbd437d2..b25b0261d77 100644 --- a/extras/libmemif/src/socket.c +++ b/extras/libmemif/src/socket.c @@ -506,7 +506,8 @@ memif_msg_receive_add_region (memif_connection_t * c, memif_msg_t * msg, c->regions[ar->index].region_size = ar->size; c->regions[ar->index].addr = NULL; - if (lm->get_external_region_addr) + /* region 0 is never external */ + if (lm->get_external_region_addr && (ar->index != 0)) c->regions[ar->index].is_external = 1; return MEMIF_ERR_SUCCESS; /* 0 */ |