Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't crash when closing a connection before initializing libevent #94

Merged
merged 1 commit into from May 10, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Don't crash when closing a connection before initializing libevent

Fixes bug 25981; bugfix on 96c5ac3.  Bug not in any released
version of Tor.
  • Loading branch information...
nmathewson committed May 7, 2018
commit 8b1380cbd08f40dc2abee171a390df6d04e999d1
@@ -1676,6 +1676,11 @@ static mainloop_event_t *postloop_cleanup_ev=NULL;
void
mainloop_schedule_postloop_cleanup(void)
{
if (PREDICT_UNLIKELY(postloop_cleanup_ev == NULL)) {
// (It's possible that we can get here if we decide to close a connection
// in the earliest stages of our configuration, before we create events.)
return;
}
mainloop_event_activate(postloop_cleanup_ev);
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.