Implementation of HTTP Keep-Alive sessions introduced a regression for
authorclaudio <claudio@openbsd.org>
Tue, 9 Nov 2021 11:00:43 +0000 (11:00 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 9 Nov 2021 11:00:43 +0000 (11:00 +0000)
commit0679236916be423a742e5ed46b6ef94ae8f02c4b
tree53f7136bfd9aa1ec2c030e44e443bce0eb6a589b
parent83b213946bcaccd148d4a46b6ebda89b120fc778
Implementation of HTTP Keep-Alive sessions introduced a regression for
the HTTP redirect limit. The loop counter is reset during the redirect
because a new http request is allocated in http_redirect(). Pass the
current redirect_loop count to http_req_new() thereby the count
increases for every redirect.

With and OK benno@ job@ tb@ beck@ deraadt@
usr.sbin/rpki-client/http.c