mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 04:20:00 -04:00
Correctly detect when get_direction failed
This commit is contained in:
parent
07902d9f9d
commit
009358d77d
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue