diff options
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c index df346a8..d14e877 100644 --- a/src/cache.c +++ b/src/cache.c @@ -284,7 +284,7 @@ cache_put( item_t *item; size_t size; - if (cache == NULL || value < -128 || value > 127) + if (cache == NULL || value < -128 || value > 127 || expire < 0) return -EINVAL; item = search(cache, key); |