]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
md: fix warning about unused variable 'cert'.
authorYann Ylavic <ylavic@apache.org>
Tue, 19 Dec 2017 22:39:03 +0000 (22:39 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 19 Dec 2017 22:39:03 +0000 (22:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1818725 13f79535-47bb-0310-9956-ffa450edef68

modules/md/md_acme_drive.c

index b6cade664688e1ff4a56f0720174e52eb4ecf88a..518225cc9abf96a5f142e9cc07e21f3e3890921f 100644 (file)
@@ -566,18 +566,11 @@ static apr_status_t get_chain(void *baton, int attempt)
 {
     md_proto_driver_t *d = baton;
     md_acme_driver_t *ad = d->baton;
-    md_cert_t *cert;
     const char *prev_link = NULL;
     apr_status_t rv = APR_SUCCESS;
 
     while (APR_SUCCESS == rv && ad->chain->nelts < 10) {
         int nelts = ad->chain->nelts;
-        if (ad->chain && nelts > 0) {
-            cert = APR_ARRAY_IDX(ad->chain, nelts - 1, md_cert_t *);
-        }
-        else {
-            cert = ad->cert;
-        }
         
         if (ad->next_up_link && (!prev_link || strcmp(prev_link, ad->next_up_link))) {
             prev_link = ad->next_up_link;