From 99e0640f1e7f4d2449c41faa5fee0e4aca56156d Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 31 Oct 2023 10:24:11 +0000 Subject: [PATCH] * 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] 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 | 4 ++++ modules/md/md_acme_order.c | 4 ++-- modules/md/md_version.h | 4 ++-- modules/md/mod_md_status.c | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 changes-entries/md_v2.4.25.txt diff --git a/changes-entries/md_v2.4.25.txt b/changes-entries/md_v2.4.25.txt new file mode 100644 index 00000000000..d4bf95f1b60 --- /dev/null +++ b/changes-entries/md_v2.4.25.txt @@ -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] diff --git a/modules/md/md_acme_order.c b/modules/md/md_acme_order.c index 9e25e84c3ab..061093a4132 100644 --- a/modules/md/md_acme_order.c +++ b/modules/md/md_acme_order.c @@ -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: diff --git a/modules/md/md_version.h b/modules/md/md_version.h index cf62f5eb5f7..86a1821c7c8 100644 --- a/modules/md/md_version.h +++ b/modules/md/md_version.h @@ -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" diff --git a/modules/md/mod_md_status.c b/modules/md/mod_md_status.c index 22860515ffd..6b29256b678 100644 --- a/modules/md/mod_md_status.c +++ b/modules/md/mod_md_status.c @@ -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)); } } -- 2.47.2