You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2022/02/08 10:00:21 UTC
svn commit: r1897849 - in /httpd/httpd/branches/2.4.x: ./ changes-entries/mod_md_status_memory.txt modules/md/md_reg.c
Author: icing
Date: Tue Feb 8 10:00:21 2022
New Revision: 1897849
URL: http://svn.apache.org/viewvc?rev=1897849&view=rev
Log:
*) mod_md: the status description in MDomain's JSON, exposed in the
md-status handler (if configure) did sometimes not carry the correct
message when certificates needed renew.
Added:
httpd/httpd/branches/2.4.x/changes-entries/mod_md_status_memory.txt
- copied unchanged from r1897819, httpd/httpd/trunk/changes-entries/mod_md_status_memory.txt
Modified:
httpd/httpd/branches/2.4.x/ (props changed)
httpd/httpd/branches/2.4.x/modules/md/md_reg.c
Propchange: httpd/httpd/branches/2.4.x/
------------------------------------------------------------------------------
Merged /httpd/httpd/trunk:r1897819
Modified: httpd/httpd/branches/2.4.x/modules/md/md_reg.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/md/md_reg.c?rev=1897849&r1=1897848&r2=1897849&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/md/md_reg.c (original)
+++ httpd/httpd/branches/2.4.x/modules/md/md_reg.c Tue Feb 8 10:00:21 2022
@@ -208,7 +208,12 @@ static apr_status_t state_init(md_reg_t
if (md->renew_window == NULL) md->renew_window = reg->renew_window;
if (md->warn_window == NULL) md->warn_window = reg->warn_window;
-
+
+ if (md->domains && md->domains->pool != p) {
+ md_log_perror(MD_LOG_MARK, MD_LOG_ERR, 0, p,
+ "md{%s}: state_init called with foreign pool", md->name);
+ }
+
for (i = 0; i < md_cert_count(md); ++i) {
spec = md_pkeys_spec_get(md->pks, i);
md_log_perror(MD_LOG_MARK, MD_LOG_TRACE2, rv, p,
@@ -902,7 +907,7 @@ apr_status_t md_reg_sync_finish(md_reg_t
md->ca_proto = MD_PROTO_ACME;
}
- rv = state_init(reg, ptemp, md);
+ rv = state_init(reg, p, md);
if (APR_SUCCESS != rv) goto leave;
md_log_perror(MD_LOG_MARK, MD_LOG_DEBUG, rv, ptemp, "loading md %s", md->name);