diff options
author | kokke <spam@rowdy.dk> | 2021-09-08 20:07:29 +0200 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2021-11-23 15:47:47 -0800 |
commit | 75e4d574b34c6e3b5dd9330acd61097b75cdf1d3 (patch) | |
tree | 5cf2a0e4308f05ae03c69d8a68360e5555ddcf15 /storage.c | |
parent | b95ca35702a9ba3cdd8e0ad66137f95dea71cbe7 (diff) | |
download | memcached-75e4d574b34c6e3b5dd9330acd61097b75cdf1d3.tar.gz |
Fix time-of-check time-of-use bugs
Fixing 'bugs' of the pattern: 'assert(ptr != 0)' after 'ptr' was already dereferenced
Diffstat (limited to 'storage.c')
-rw-r--r-- | storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -379,9 +379,9 @@ static void recache_or_free(io_pending_t *pending) { conn *c = p->c; obj_io *io = &p->io_ctx; + assert(io != NULL); item *it = (item *)io->buf; assert(c != NULL); - assert(io != NULL); bool do_free = true; if (p->active) { // If request never dispatched, free the read buffer but leave the |