the JSON code for persisting time periods (start+end).
Fixes #282 on mod_md's github.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1900145 13f79535-47bb-0310-9956-
ffa450edef68
--- /dev/null
+ *) mod_md: a possible NULL pointer deref was fixed in
+ the JSON code for persisting time periods (start+end).
+ Fixes #282 on mod_md's github.
+ Thanks to @marcstern for finding this.
const char *key;
apr_status_t rv;
- if (!tp || tp->start || tp->end) {
+ if (tp && tp->start && tp->end) {
jn = json_object();
apr_rfc822_date(ts, tp->start);
json_object_set_new(jn, "from", json_string(ts));
* @macro
* Version number of the md module as c string
*/
-#define MOD_MD_VERSION "2.4.12"
+#define MOD_MD_VERSION "2.4.13"
/**
* @macro
* 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 0x02040c
+#define MOD_MD_VERSION_NUM 0x02040d
#define MD_ACME_DEF_URL "https://acme-v02.api.letsencrypt.org/directory"