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.
This commit is contained in:
David Lawrence 1999-05-07 17:13:06 +00:00
parent bee0bb2b68
commit d92d2f722a

View file

@ -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);
}