mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
make our tor_assert actually work when it's going to be triggered,
rather than seg fault svn:r2368
This commit is contained in:
parent
a1979800ab
commit
8385fdb590
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue