Move the assignment of http_query down. Also do not assign a non-malloced
authorclaudio <claudio@openbsd.org>
Thu, 11 Nov 2021 15:52:33 +0000 (15:52 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 11 Nov 2021 15:52:33 +0000 (15:52 +0000)
commita89b976f53c4148440f39b9b2998a1c87e8725b5
tree4a8e89aa5097af36aa808b57e63a2dc1b506312f
parent71995d6ad7f183a6ec83ac14ee35e29f8568f031
Move the assignment of http_query down. Also do not assign a non-malloced
string to it since the code assumes it can call free on it.
Fixes crashes noticed by tobhe@ and florian@
OK otto@ tobhe@
usr.sbin/httpd/server_http.c