]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Correctly detect when get_direction failed
authorMark Andrews <marka@isc.org>
Thu, 18 Feb 2021 05:57:28 +0000 (16:57 +1100)
committerMark Andrews <marka@isc.org>
Thu, 18 Feb 2021 22:17:32 +0000 (09:17 +1100)
lib/dns/rdata/generic/loc_29.c

index 5ab231cb930966a4ce6b5fd4da42849502b20215..478723ae6c290db39224b553719f69e89df68243 100644 (file)
@@ -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: