From 28f2fbe81c1f53a2acfbe35030d8c1dc36ce108f Mon Sep 17 00:00:00 2001 From: jca Date: Mon, 13 Dec 2021 13:30:39 +0000 Subject: [PATCH] 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@ --- usr.sbin/acme-client/dnsproc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.20.1