diff options
author | Mark Nunberg <mnunberg@haskalah.org> | 2019-02-11 14:55:07 -0500 |
---|---|---|
committer | Mark Nunberg <mnunberg@haskalah.org> | 2019-02-20 09:11:10 -0500 |
commit | 1eb44cf0c4e004dda6d8b9c7500cd55e367cc87b (patch) | |
tree | a131531c23f8f95dfdb46fc02635a16d8b0dd539 | |
parent | f60c5506feab92f2b6185661cce16a303d28a6a3 (diff) |
scrub redisContext before freeing
This helps us detect use-after-free
-rw-r--r-- | hiredis.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -618,6 +618,7 @@ void redisFree(redisContext *c) { if (c->ssl) { redisFreeSsl(c->ssl); } + memset(0xff, c, sizeof(*c)); free(c); } |