]> granicus.if.org Git - libevent/commitdiff
fix bug where req was freed and dereferenced afterwards; from tor cvs via Nick Mathewson
authorNiels Provos <provos@gmail.com>
Mon, 28 May 2007 21:19:18 +0000 (21:19 +0000)
committerNiels Provos <provos@gmail.com>
Mon, 28 May 2007 21:19:18 +0000 (21:19 +0000)
svn:r360

evdns.c

diff --git a/evdns.c b/evdns.c
index 82b45a7f47e517f08dc0e3a68af78e80f693515a..e68ab8456fdb6fcecd6ba0c1493ec5d57d4caddb 100644 (file)
--- 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;