]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
set error code if aes selected and not implemented
authorMark Andrews <marka@isc.org>
Wed, 8 Jul 2015 02:20:46 +0000 (12:20 +1000)
committerMark Andrews <marka@isc.org>
Wed, 8 Jul 2015 02:20:46 +0000 (12:20 +1000)
lib/bind9/check.c

index e8cd028eb76420e379a7c410bd066cdd1cd284db..3f19f231f4f65e75291efcbe0ce560e1cc00a95e 100644 (file)
@@ -1178,13 +1178,15 @@ check_options(const cfg_obj_t *options, isc_log_t *logctx, isc_mem_t *mctx,
        }
 
        obj = NULL;
-       (void) cfg_map_get(options, "cookie-algorithm,", &obj);
+       (void) cfg_map_get(options, "cookie-algorithm", &obj);
        if (obj != NULL)
                ccalg = cfg_obj_asstring(obj);
 #if !defined(HAVE_OPENSSL_AES) && !defined(HAVE_OPENSSL_EVP_AES)
-       if (strcasecmp(ccalg, "aes") == 0)
+       if (strcasecmp(ccalg, "aes") == 0) {
                cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
                            "cookie-algorithm: '%s' not supported", ccalg);
+               result = ISC_R_NOTIMPLEMENTED;
+       }
 #endif
 
        obj = NULL;