Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Update
varnish
0001-Clear-err_code-and-err_reason-at-start-of-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Clear-err_code-and-err_reason-at-start-of-request-ha.patch of Package varnish
From 99da6e40df70824bb72854be96ea649659cd1920 Mon Sep 17 00:00:00 2001 From: Martin Blix Grydeland <martin@varnish-software.com> Date: Tue, 1 Oct 2019 11:17:17 +0200 Subject: [PATCH] Clear err_code and err_reason at start of request handling req->err_code and req->err_reason are set when going to synthetic handling. From there the resp.reason HTTP field is set from req->err_reason if set, or the generic code based on req->err_code is used if it was NULL. This patch clears these members so that a value from the handling of a previous request doesn't linger. Fixes: VSV00004 --- bin/varnishd/cache/cache_req_fsm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c index a8ee9c61b..c6f4e7f3e 100644 --- a/bin/varnishd/cache/cache_req_fsm.c +++ b/bin/varnishd/cache/cache_req_fsm.c @@ -807,6 +807,8 @@ cnt_recv_prep(struct req *req, const char *ci) req->is_hit = 0; req->is_hitmiss = 0; req->is_hitpass = 0; + req->err_code = 0; + req->err_reason = NULL; } /*-------------------------------------------------------------------- -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor