summaryrefslogtreecommitdiff
path: root/sbin/unwind
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2021-01-31 16:07:28 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2021-01-31 16:07:28 +0000
commit93b7c0f7d82d173efe2f9ef92b5cfa7fcdf7263d (patch)
tree2554a5f226b8b1b1dfc883c1ed3ec45d96b21051 /sbin/unwind
parentbc91ce5253b0df1eb267e24a63a63878fc48b9a4 (diff)
Make progress when stepping through rdns proposals even when skipping
localhost.
Diffstat (limited to 'sbin/unwind')
-rw-r--r--sbin/unwind/resolver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c
index d93132177ab..137f428df94 100644
--- a/sbin/unwind/resolver.c
+++ b/sbin/unwind/resolver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resolver.c,v 1.140 2021/01/30 10:31:51 florian Exp $ */
+/* $OpenBSD: resolver.c,v 1.141 2021/01/31 16:07:27 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -1998,19 +1998,19 @@ replace_autoconf_forwarders(struct imsg_rdns_proposal *rdns_proposal)
switch (af) {
case AF_INET:
memcpy(&addr4, src, sizeof(struct in_addr));
+ src += sizeof(struct in_addr);
if (addr4.s_addr == INADDR_LOOPBACK)
continue;
ns = inet_ntop(af, &addr4, ntopbuf,
INET6_ADDRSTRLEN);
- src += sizeof(struct in_addr);
break;
case AF_INET6:
memcpy(&addr6, src, sizeof(struct in6_addr));
+ src += sizeof(struct in6_addr);
if (IN6_IS_ADDR_LOOPBACK(&addr6))
continue;
ns = inet_ntop(af, &addr6, ntopbuf,
INET6_ADDRSTRLEN);
- src += sizeof(struct in6_addr);
}
if ((uw_forwarder = calloc(1, sizeof(struct uw_forwarder))) ==