From: jca Date: Mon, 13 Dec 2021 13:30:39 +0000 (+0000) Subject: Let dnsproc pass multiple addresses to netproc X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=28f2fbe81c1f53a2acfbe35030d8c1dc36ce108f;p=openbsd Let dnsproc pass multiple addresses to netproc The loop was exited prematurely because of a stray break statement. In case of a failure to connect to the first address returned by getaddrinfo(3), acme-client can now try to connect using another address or address family if available. ok florian@ --- diff --git a/usr.sbin/acme-client/dnsproc.c b/usr.sbin/acme-client/dnsproc.c index 664ef8d9b8b..b2f0ae279f5 100644 --- a/usr.sbin/acme-client/dnsproc.c +++ b/usr.sbin/acme-client/dnsproc.c @@ -1,4 +1,4 @@ -/* $Id: dnsproc.c,v 1.11 2020/05/10 15:06:07 florian Exp $ */ +/* $Id: dnsproc.c,v 1.12 2021/12/13 13:30:39 jca Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -102,7 +102,6 @@ host_dns(const char *s, struct addr *vec) dodbg("%s: DNS: %s", s, vec[vecsz].ip); vecsz++; - break; } freeaddrinfo(res0);