From: Niels Provos Date: Thu, 16 Nov 2006 15:59:42 +0000 (+0000) Subject: we indicate a failed request by removing the uri from the request object X-Git-Tag: release-2.0.1-alpha~702 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1caff9bcc8f26223ddfd9056d99e7581bc484805;p=libevent we indicate a failed request by removing the uri from the request object svn:r257 --- diff --git a/http.c b/http.c index dd3ea5db..4dfcd3fb 100644 --- a/http.c +++ b/http.c @@ -332,6 +332,11 @@ evhttp_connection_fail(struct evhttp_connection *evcon) * kill the connection. */ if (evcon->flags & EVHTTP_CON_INCOMING) { + /* the callback looks at the uri to determine errors */ + if (req->uri) { + free(req->uri); + req->uri = NULL; + } (*req->cb)(req, req->cb_arg); return; }