From: Christophe Jaillet Date: Sat, 26 Oct 2019 20:39:23 +0000 (+0000) Subject: Fix an incorrect NULL checked. X-Git-Tag: 2.5.0-alpha2-ci-test-only~1843 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9abf04a656d28350d21dcc6e5df1e6ef1b220c50;p=thirdparty%2Fapache%2Fhttpd.git Fix an incorrect NULL checked. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869018 13f79535-47bb-0310-9956-ffa450edef68 --- 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);