mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +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.
|
* Direction.
|
||||||
*/
|
*/
|
||||||
RETERR(get_direction(lexer, &token, directions, &direction));
|
RETERR(get_direction(lexer, &token, directions, &direction));
|
||||||
if (direction == -1) {
|
if (direction == 0) {
|
||||||
RETERR(DNS_R_SYNTAX);
|
RETERR(DNS_R_SYNTAX);
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
|
Reference in New Issue
Block a user