summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2019-10-26 22:39:23 +0200
committerChristophe Jaillet <jailletc36@apache.org>2019-10-26 22:39:23 +0200
commit9abf04a656d28350d21dcc6e5df1e6ef1b220c50 (patch)
tree83e00da1f67c5cdb3ad1898fad76cde336d81118
parentHelp doc writer to spot places where: (diff)
downloadapache2-9abf04a656d28350d21dcc6e5df1e6ef1b220c50.tar.xz
apache2-9abf04a656d28350d21dcc6e5df1e6ef1b220c50.zip
Fix an incorrect NULL checked.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869018 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/md/md_acme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/md/md_acme.c b/modules/md/md_acme.c
index d42ea72230..d9342cbcd3 100644
--- a/modules/md/md_acme.c
+++ b/modules/md/md_acme.c
@@ -402,7 +402,7 @@ static apr_status_t md_acme_req_send(md_acme_req_t *req)
if (req->req_json) {
body = apr_pcalloc(req->p, sizeof(*body));
body->data = md_json_writep(req->req_json, req->p, MD_JSON_FMT_INDENT);
- if (!body) {
+ if (!body->data) {
rv = APR_EINVAL; goto leave;
}
body->len = strlen(body->data);