diff options
Diffstat (limited to 'src/common/torgzip.c')
-rw-r--r-- | src/common/torgzip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/torgzip.c b/src/common/torgzip.c index 762f2e71bf..13e0c7fb7c 100644 --- a/src/common/torgzip.c +++ b/src/common/torgzip.c @@ -423,7 +423,8 @@ tor_zlib_process(tor_zlib_state_t *state, void tor_zlib_free(tor_zlib_state_t *state) { - tor_assert(state); + if (!state) + return; if (state->compress) deflateEnd(&state->stream); |