From 009358d77d68ea6ad90702a951483beb11717c00 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 18 Feb 2021 16:57:28 +1100 Subject: [PATCH] Correctly detect when get_direction failed --- lib/dns/rdata/generic/loc_29.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: