From 13904f9aa87323f53ec78b07ec32afb7284a06ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Wed, 7 Oct 2009 13:10:26 +0200 Subject: [PATCH] Fix mod_accesslog vr_close handling --- src/modules/mod_accesslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mod_accesslog.c b/src/modules/mod_accesslog.c index 0ff08f3..922c241 100644 --- a/src/modules/mod_accesslog.c +++ b/src/modules/mod_accesslog.c @@ -371,7 +371,7 @@ static void al_handle_vrclose(liVRequest *vr, liPlugin *p) { UNUSED(p); - if (resp->http_status == 0 || !log || !format) + if (LI_VRS_CLEAN == vr->state || resp->http_status == 0 || !log || !format) /* if status code is zero, it means the connection was closed while in keep alive state or similar and no logging is needed */ return;