2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Correctly detect when get_direction failed

This commit is contained in:
Mark Andrews
2021-02-18 16:57:28 +11:00
parent 07902d9f9d
commit 009358d77d

View File

@@ -242,7 +242,7 @@ loc_getcoordinate(isc_lex_t *lexer, unsigned long *dp, unsigned long *mp,
* Direction.
*/
RETERR(get_direction(lexer, &token, directions, &direction));
if (direction == -1) {
if (direction == 0) {
RETERR(DNS_R_SYNTAX);
}
done: