diff options
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r-- | src/or/hs_service.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c index 5f36964547..cb3a49cb8a 100644 --- a/src/or/hs_service.c +++ b/src/or/hs_service.c @@ -2111,10 +2111,9 @@ check_state_line_for_service_rev_counter(const char *state_line, b64_key_str, rev_counter); done: - if (items) { - SMARTLIST_FOREACH(items, char*, s, tor_free(s)); - smartlist_free(items); - } + tor_assert(items); + SMARTLIST_FOREACH(items, char*, s, tor_free(s)); + smartlist_free(items); return rev_counter; } |