author | Alberto Bertogli
<albertito@gmail.com> 2007-01-07 05:46:21 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-01-07 05:46:21 UTC |
parent | 6edf9833494d40dca7b39ac3b1f18c8909f178b0 |
nmdb/cache.c | +1 | -0 |
diff --git a/nmdb/cache.c b/nmdb/cache.c index a5a9806..27f426f 100644 --- a/nmdb/cache.c +++ b/nmdb/cache.c @@ -242,6 +242,7 @@ int cache_set(struct cache *cd, const unsigned char *key, size_t ksize, } free(e->val); e->val = v; + e->vsize = vsize; memcpy(e->val, val, vsize); /* promote the entry to the top of the list if necessary */