Don't free the addrinfo array after connect and refactor http_finish_connect.
authorclaudio <claudio@openbsd.org>
Wed, 2 Nov 2022 11:44:19 +0000 (11:44 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 2 Nov 2022 11:44:19 +0000 (11:44 +0000)
commitd8c9362364cf5488fa2dd7d5028e96f0f2707863
treedb9ddd92e70390657983cf13901933bb6d4f543f
parent3b405428c938f2c0c4fa4849c56380774b3c1043
Don't free the addrinfo array after connect and refactor http_finish_connect.

In http_connect_done() the addrinfo array was freed but this makes it
impossible to show the IP address of the connection in log messages.
Also refactor http_finish_connect() to call http_connect_failed() instead
of doing the same inline.
OK tb@
usr.sbin/rpki-client/http.c