Cleanup http_connect() and make it look more like the example in
authorclaudio <claudio@openbsd.org>
Tue, 6 Apr 2021 12:35:24 +0000 (12:35 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 6 Apr 2021 12:35:24 +0000 (12:35 +0000)
commit0abf3cc667d55b0cdc5df1147b5eeee0b1752b30
treeeaceb1cf2109835a76f4c6fd384531af25aac192
parentd24fa330ccefc9ed7fd8f8265eb01c0e6d4112d6
Cleanup http_connect() and make it look more like the example in
getaddrinfo(3). Most notable change is the error reporting.
Do not warn if cause is not set. In this case the last connect attempt
failed but there is no alternate address to use. Since that error was
already logged there is no need for an extra warning here.
OK job@
usr.sbin/rpki-client/http.c