Skip to content

Commit

Permalink
* mod_md: Fix the reported "until" validity of a certificate in the …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
icing committed Oct 31, 2023
1 parent 08ab87e commit 99e0640
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changes-entries/md_v2.4.25.txt
Original file line number Diff line number Diff line change
@@ -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]
4 changes: 2 additions & 2 deletions modules/md/md_acme_order.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions modules/md/md_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
* @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
* Numerical representation of the version number of the md module
* 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"
Expand Down
2 changes: 1 addition & 1 deletion modules/md/mod_md_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 99e0640

Please sign in to comment.