Commit 8385fdb5 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

make our tor_assert actually work when it's going to be triggered,

rather than seg fault


svn:r2368
parent a1979800
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);