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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user