From: Mark Andrews Date: Thu, 18 Feb 2021 05:57:28 +0000 (+1100) Subject: Correctly detect when get_direction failed X-Git-Tag: v9.17.11~39^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=009358d77d68ea6ad90702a951483beb11717c00;p=thirdparty%2Fbind9.git Correctly detect when get_direction failed --- diff --git a/lib/dns/rdata/generic/loc_29.c b/lib/dns/rdata/generic/loc_29.c index 5ab231cb930..478723ae6c2 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: