summaryrefslogtreecommitdiff
path: root/src/lib/shm_du_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/shm_du_map.c')
-rw-r--r--src/lib/shm_du_map.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c
index 56062c9d..71c15731 100644
--- a/src/lib/shm_du_map.c
+++ b/src/lib/shm_du_map.c
@@ -328,9 +328,8 @@ int shm_release_du_buff(struct shm_du_map * dum, size_t idx)
long blocks = 0;
- /* FIXME: this is crap for the test */
if (idx > SHM_BLOCKS_IN_MAP)
- idx = *dum->ptr_tail;
+ return -1;
pthread_mutex_lock(dum->shm_mutex);