|
@@ -233,7 +233,7 @@ static void delete_log(logfile_t *victim) {
|
|
|
logfiles = victim->next;
|
|
|
else {
|
|
|
for(tmpl = logfiles; tmpl && tmpl->next != victim; tmpl=tmpl->next) ;
|
|
|
- tor_assert(tmpl->next == victim);
|
|
|
+ tor_assert(tmpl && tmpl->next == victim);
|
|
|
tmpl->next = victim->next;
|
|
|
}
|
|
|
tor_free(victim->filename);
|