]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Fix bug: segfault when no CRL was set
authorpcarana <pc.moreno2099@gmail.com>
Mon, 10 Jun 2019 21:26:55 +0000 (16:26 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Mon, 10 Jun 2019 21:26:55 +0000 (16:26 -0500)
src/rpp.c

index 640413b1a6f798e76490a7f6e67983c0f3e8f5d6..09d7764a9bada79116c733ce97775c0347752fc2 100644 (file)
--- a/src/rpp.c
+++ b/src/rpp.c
@@ -72,7 +72,8 @@ rpp_refput(struct rpp *pp)
        pp->references--;
        if (pp->references == 0) {
                uris_cleanup(&pp->certs, __uri_refput);
-               uri_refput(pp->crl);
+               if (pp->crl_set)
+                       uri_refput(pp->crl);
                if (pp->crl_stack != NULL)
                        sk_X509_CRL_pop_free(pp->crl_stack, X509_CRL_free);
                uris_cleanup(&pp->roas, __uri_refput);