]> granicus.if.org Git - apache/commitdiff
md_acme_drive.c: remove unused variable
authorLuca Toscano <elukey@apache.org>
Sat, 13 Oct 2018 12:10:49 +0000 (12:10 +0000)
committerLuca Toscano <elukey@apache.org>
Sat, 13 Oct 2018 12:10:49 +0000 (12:10 +0000)
Compiling in maintainer mode leads to a failure
due to challenges_configured initialized but
not used. Removing it seems harmless, Stefan
please let me know if this is not the case.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1843743 13f79535-47bb-0310-9956-ffa450edef68

modules/md/md_acme_drive.c

index 1587321f2502fd574b9e8fef30835754dd93e5fd..b5592e69b8fbab354e8dae410756fa983807f6a0 100644 (file)
@@ -615,7 +615,6 @@ static apr_status_t acme_driver_init(md_proto_driver_t *d)
 {
     md_acme_driver_t *ad;
     apr_status_t rv = APR_SUCCESS;
-    int challenges_configured = 0;
 
     ad = apr_pcalloc(d->p, sizeof(*ad));
     
@@ -632,12 +631,10 @@ static apr_status_t acme_driver_init(md_proto_driver_t *d)
     if (d->challenge) {
         /* we have been told to use this type */
         APR_ARRAY_PUSH(ad->ca_challenges, const char*) = apr_pstrdup(d->p, d->challenge);
-        challenges_configured = 1;
     }
     else if (d->md->ca_challenges && d->md->ca_challenges->nelts > 0) {
         /* pre-configured set for this managed domain */
         apr_array_cat(ad->ca_challenges, d->md->ca_challenges);
-        challenges_configured = 1;
     }
     else {
         /* free to chose. Add all we support and see what we get offered */