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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user