From 9abf04a656d28350d21dcc6e5df1e6ef1b220c50 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sat, 26 Oct 2019 20:39:23 +0000 Subject: [PATCH] Fix an incorrect NULL checked. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869018 13f79535-47bb-0310-9956-ffa450edef68 --- modules/md/md_acme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/md/md_acme.c b/modules/md/md_acme.c index d42ea72230c..d9342cbcd30 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); -- 2.47.3