Fix an incorrect NULL checked.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 26 Oct 2019 20:39:23 +0000 (20:39 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 26 Oct 2019 20:39:23 +0000 (20:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869018 13f79535-47bb-0310-9956-ffa450edef68

modules/md/md_acme.c

index d42ea72230c6c9f28a92712d04d9508cbeaf1a8f..d9342cbcd30a916185dd9faeca9ebf2567e6adc1 100644 (file)
@@ -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);