]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/aaa/mod_auth_digest.c: Remove checks for NULL client_shm
authorJoe Orton <jorton@apache.org>
Mon, 6 Jul 2026 12:52:23 +0000 (12:52 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 6 Jul 2026 12:52:23 +0000 (12:52 +0000)
  throughout.

GitHub: PR #661

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935952 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_auth_digest.c

index 1ebad110c086adee7044c5645d6aa42310a00b0d..66ca0d365d4aeb4ca98e30af2dcfa09d007585ed 100644 (file)
@@ -404,10 +404,6 @@ static void initialize_child(apr_pool_t *p, server_rec *s)
 {
     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 long key, const request_rec *r)
     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 long key, client_entry *info,
     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 digest_header_rec *resp,
     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;
     }