From d92d2f722ad5a2063010a6720fe137ada7562e30 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 7 May 1999 17:13:06 +0000 Subject: [PATCH] Shifting bitstring bytes for the prefix of dns_name_split didn't work properly because the destination was being ANDed with the bits coming from the next byte, rather than ORed. --- lib/dns/name.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/name.c b/lib/dns/name.c index 1d27c71808..69c1d74421 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -2466,7 +2466,7 @@ dns_name_split(dns_name_t *name, * by the right shift. */ if (len > 0) - *dst++ &= + *dst++ |= (*src >> (8 - mod)) & ~(0xFF << mod); }