From 73c2dd32864f184ec805acb8e15fdc231bd893b7 Mon Sep 17 00:00:00 2001 From: itojun Date: Fri, 6 Sep 2002 04:50:02 +0000 Subject: [PATCH] fix dig -x ip6addr. PR 18193. --- dist/bind/bin/dig/dig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bind/bin/dig/dig.c b/dist/bind/bin/dig/dig.c index 22c5791fc304..c1e30b5a6263 100644 --- a/dist/bind/bin/dig/dig.c +++ b/dist/bind/bin/dig/dig.c @@ -1,4 +1,4 @@ -/* $NetBSD: dig.c,v 1.5 2002/06/20 11:42:54 itojun Exp $ */ +/* $NetBSD: dig.c,v 1.6 2002/09/06 04:50:02 itojun Exp $ */ #ifndef lint static const char rcsid[] = "Id: dig.c,v 8.57 2002/06/18 02:26:49 marka Exp"; @@ -1801,7 +1801,7 @@ reverse6(char *domain, struct in6_addr *in6) { in6->s6_addr[6] & 0x0f, (in6->s6_addr[6] >> 4) & 0x0f, in6->s6_addr[5] & 0x0f, (in6->s6_addr[5] >> 4) & 0x0f, in6->s6_addr[4] & 0x0f, (in6->s6_addr[4] >> 4) & 0x0f, - in6->s6_addr[6] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f, + in6->s6_addr[3] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f, in6->s6_addr[2] & 0x0f, (in6->s6_addr[2] >> 4) & 0x0f, in6->s6_addr[1] & 0x0f, (in6->s6_addr[1] >> 4) & 0x0f, in6->s6_addr[0] & 0x0f, (in6->s6_addr[0] >> 4) & 0x0f);