From: pcarana Date: Mon, 10 Jun 2019 21:26:55 +0000 (-0500) Subject: Fix bug: segfault when no CRL was set X-Git-Tag: v0.0.2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0996f835d051c567a48c106089e0df6d224a2d15;p=thirdparty%2FFORT-validator.git Fix bug: segfault when no CRL was set --- diff --git a/src/rpp.c b/src/rpp.c index 640413b1..09d7764a 100644 --- 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);