diff --git a/lib/dns/rdata/generic/loc_29.c b/lib/dns/rdata/generic/loc_29.c index 5ab231cb93..478723ae6c 100644 --- a/lib/dns/rdata/generic/loc_29.c +++ b/lib/dns/rdata/generic/loc_29.c @@ -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: