Commit ba7c74e7 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

bandaid: make Giorgos Pallas's dns assert bug not actually crash on him.

one day we should try to figure out what's actually going on here.


svn:r3280
parent 6dd91de3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -396,6 +396,11 @@ void dns_cancel_pending_resolve(char *address) {
    return;
  }

  if (!resolve->pending_connections) {
    /* XXX this should never trigger, but sometimes it does */
    log_fn(LOG_WARN,"Bug: Address '%s' is pending but has no pending connections!", address);
    return;
  }
  tor_assert(resolve->pending_connections);

  /* mark all pending connections to fail */