svn commit: r1935952 - httpd/httpd/trunk/modules/aaa
[email protected] Mon, 06 Jul 2026 12:52:23 -0000
| Newsgroups | gmane.comp.apache.cvs |
|---|---|
| Message-ID | <178334234368.452147.8624164092948316710@svn03-he-fi> |
Author: jorton
Date: Mon Jul 6 12:52:23 2026
New Revision: 1935952
Log:
* modules/aaa/mod_auth_digest.c: Remove checks for NULL client_shm
throughout.
GitHub: PR #661
Modified:
httpd/httpd/trunk/modules/aaa/mod_auth_digest.c
Modified: httpd/httpd/trunk/modules/aaa/mod_auth_digest.c
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_auth_digest.c Mon Jul 6 12:52:10 2026 (r1935951)
+++ httpd/httpd/trunk/modules/aaa/mod_auth_digest.c Mon Jul 6 12:52:23 2026 (r1935952)
@@ -404,10 +404,6 @@ static void initialize_child(apr_pool_t
{
apr_status_t sts;
- if (!client_shm) {
- return;
- }
-
/* Get access to rmm in child */
sts = apr_rmm_attach(&client_rmm,
NULL,
@@ -663,8 +659,7 @@ static client_entry *get_client(unsigned
int bucket;
client_entry *entry, *prev = NULL;
-
- if (!key || !client_shm) return NULL;
+ if (!key) return NULL;
bucket = key % client_list->tbl_len;
entry = client_list->table[bucket];
@@ -760,8 +755,7 @@ static client_entry *add_client(unsigned
int bucket;
client_entry *entry;
-
- if (!key || !client_shm) {
+ if (!key) {
return NULL;
}
@@ -1246,14 +1240,7 @@ static int check_nc(const request_rec *r
const char *snc = resp->nonce_count;
char *endptr;
- if (conf->check_nc && !client_shm) {
- /* Shouldn't happen, but just in case... */
- ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, APLOGNO(01771)
- "cannot check nonce count without shared memory");
- return OK;
- }
-
- if (!conf->check_nc || !client_shm) {
+ if (!conf->check_nc) {
return OK;
}