summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 066a16b327..8e446f265e 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1928,7 +1928,6 @@ static int cert_verify_ocsp(gnutls_session_t session)
}
for (it = 0; it < cert_list_size; it++) {
- gnutls_x509_crt_init(&cert);
if (deinit_cert)
gnutls_x509_crt_deinit(cert);
gnutls_x509_crt_init(&cert);
@@ -1975,6 +1974,7 @@ static int cert_verify_ocsp(gnutls_session_t session)
/* verify and check the response for revoked cert */
ret = check_ocsp_response(cert, issuer, &resp, &nonce, verbose);
+ free(resp.data);
if (ret == 1)
ok++;
else if (ret == 0) {