This avoids having the variables being deinitialized twice during
cleanup.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
if (ret < 0) {
gnutls_assert();
gnutls_x509_crt_deinit(this_cert);
+ this_cert = NULL;
goto done;
}
if (ret < 0) {
gnutls_assert();
gnutls_x509_crt_deinit(this_cert);
+ this_cert = NULL;
goto done;
}
} else {
gnutls_x509_crt_deinit
(this_cert);
+ this_cert = NULL;
}
}
break;
if (ret < 0) {
gnutls_assert();
gnutls_x509_crl_deinit(*crl);
+ *crl = NULL;
goto done;
}
break;