From 1caff9bcc8f26223ddfd9056d99e7581bc484805 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Thu, 16 Nov 2006 15:59:42 +0000 Subject: [PATCH] we indicate a failed request by removing the uri from the request object svn:r257 --- http.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.40.0