From: Daniel Earl Poirier Date: Fri, 28 Aug 2009 14:42:25 +0000 (+0000) Subject: Make code match warning message: disable nonce-checking X-Git-Tag: 2.3.3~356 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba6c69e73865f2d5b89f2517bc7499c365f12faf;p=thirdparty%2Fapache%2Fhttpd.git Make code match warning message: disable nonce-checking if shared memory isn't available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808903 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_auth_digest.c b/modules/aaa/mod_auth_digest.c index df9235b5c41..6b6ee10ef44 100644 --- a/modules/aaa/mod_auth_digest.c +++ b/modules/aaa/mod_auth_digest.c @@ -592,11 +592,13 @@ static const char *set_nonce_format(cmd_parms *cmd, void *config, static const char *set_nc_check(cmd_parms *cmd, void *config, int flag) { - if (flag && !client_shm) + if (flag && !client_shm) { ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, "Digest: WARNING: nonce-count checking " "is not supported on platforms without shared-memory " "support - disabling check"); + flag = 0; + } ((digest_config_rec *) config)->check_nc = flag; return NULL;