]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* mod_md: Fix the reported "until" validity of a certificate in the status
authorStefan Eissing <icing@apache.org>
Tue, 31 Oct 2023 10:24:11 +0000 (10:24 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 31 Oct 2023 10:24:11 +0000 (10:24 +0000)
   handler. [Rainer Jung]
   Fix possible NULL deref when logging the error that an authentication
   resource could not be retrieved from the ACME server. [Stefan Eissing]

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

changes-entries/md_v2.4.25.txt [new file with mode: 0644]
modules/md/md_acme_order.c
modules/md/md_version.h
modules/md/mod_md_status.c

diff --git a/changes-entries/md_v2.4.25.txt b/changes-entries/md_v2.4.25.txt
new file mode 100644 (file)
index 0000000..d4bf95f
--- /dev/null
@@ -0,0 +1,4 @@
+ * mod_md: Fix the reported "until" validity of a certificate in the status
+   handler. [Rainer Jung]
+   Fix possible NULL deref when logging the error that an authentication
+   resource could not be retrieved from the ACME server. [Stefan Eissing]
index 9e25e84c3abc4409a40d636c9fe7ac9b09429796..061093a413262f1e861db22ae93064879cb0b983 100644 (file)
@@ -537,8 +537,8 @@ static apr_status_t check_challenges(void *baton, int attempt)
             }
         }
         else {
-            md_result_printf(ctx->result, rv, "authorization retrieval failed for domain %s", 
-                             authz->domain);
+            md_result_printf(ctx->result, rv, "authorization retrieval failed for %s on <%s>",
+                             ctx->name, url);
         }
     }
 leave:
index cf62f5eb5f7bccfbda929deb145897a4ff59d5c1..86a1821c7c8eb12d3ce2e6131aab9c98c6027c44 100644 (file)
@@ -27,7 +27,7 @@
  * @macro
  * Version number of the md module as c string
  */
-#define MOD_MD_VERSION "2.4.24"
+#define MOD_MD_VERSION "2.4.25"
 
 /**
  * @macro
@@ -35,7 +35,7 @@
  * release. This is a 24 bit number with 8 bits for major number, 8 bits
  * for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
  */
-#define MOD_MD_VERSION_NUM 0x020418
+#define MOD_MD_VERSION_NUM 0x020419
 
 #define MD_ACME_DEF_URL         "https://acme-v02.api.letsencrypt.org/directory"
 #define MD_TAILSCALE_DEF_URL    "file://localhost/var/run/tailscale/tailscaled.sock"
index 22860515ffdcd71c827d6a6001b4970a45ba9579..6b29256b678c58382dee26f403e96ce05b5fec8c 100644 (file)
@@ -325,7 +325,7 @@ static void si_val_valid_time(status_ctx *ctx, md_json_t *mdj, const status_info
             apr_pstrcat(ctx->p, info->label, "From", NULL));
         }
         if (until) {
-            print_date(ctx, from,
+            print_date(ctx, until,
             apr_pstrcat(ctx->p, info->label, "Until", NULL));
         }
     }