Browse Source

Add >= idx check for redis_list_get_idx_ptr()

pull/239/head
Stefan Mititelu 10 years ago
parent
commit
11e94c40ea
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/redis.c

+ 1
- 1
daemon/redis.c View File

@ -873,7 +873,7 @@ static int redis_hash_get_stats(struct stats *out, const struct redis_hash *h, c
return 0;
}
static void *redis_list_get_idx_ptr(struct redis_list *list, unsigned int idx) {
if (idx > list->len)
if (idx >= list->len)
return NULL;
return list->ptrs[idx];
}


Loading…
Cancel
Save