From: Mark Andrews Date: Wed, 8 Jul 2015 02:20:46 +0000 (+1000) Subject: set error code if aes selected and not implemented X-Git-Tag: v9.11.0a1~670 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=af63e286dda7bf44af4010658042e0c1e6902ce1;p=thirdparty%2Fbind9.git set error code if aes selected and not implemented --- diff --git a/lib/bind9/check.c b/lib/bind9/check.c index e8cd028eb76..3f19f231f4f 100644 --- a/lib/bind9/check.c +++ b/lib/bind9/check.c @@ -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;