From: Niels Provos Date: Mon, 28 May 2007 21:19:18 +0000 (+0000) Subject: fix bug where req was freed and dereferenced afterwards; from tor cvs via Nick Mathewson X-Git-Tag: release-2.0.1-alpha~621 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d06ab8569e26b3535967be5c8fcc5efad6850e85;p=libevent fix bug where req was freed and dereferenced afterwards; from tor cvs via Nick Mathewson svn:r360 --- diff --git a/evdns.c b/evdns.c index 82b45a7f..e68ab845 100644 --- a/evdns.c +++ b/evdns.c @@ -1688,7 +1688,7 @@ evdns_server_request_respond(struct evdns_server_request *_req, int err) if (server_request_free(req)) return 0; - if (req->port->pending_replies) + if (port->pending_replies) server_port_flush(port); return 0;