We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ced772 commit 1981b26Copy full SHA for 1981b26
src/generic/nsap.h
@@ -28,7 +28,7 @@ static really_inline int32_t parse_nsap(
28
// hex string anywhere after "0x" for readability. The "."s have no
29
// significance other than for readability and are not propagated in the
30
// protocol (e.g., queries or zone transfers).
31
- if (unlikely((data[0] == '0') ^ ((data[1] & 0xdf) == 'X')))
+ if (unlikely(data[0] != '0' || !(data[1] == 'X' || data[1] == 'x')))
32
SYNTAX_ERROR(parser, "Invalid %s in %s", NAME(field), NAME(type));
33
34
data += 2;
0 commit comments