summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-17 15:10:40 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-17 15:10:40 +0100
commit4ca681a85f7b8227b40d2ef1b4fd3a12eb7c18d4 (patch)
tree58c6bb4eff4cf3d044d6b8f1c8d1e95ab1fd1c5c
parent5a15819da5caf86b2b84194a2b39098460052f05 (diff)
downloadgnutls-tmp-cert-v1-reject.tar.gz
gnutls_x509_crt_list_import: fixed leak on import failuretmp-cert-v1-reject
-rw-r--r--lib/x509/x509.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c
index c42a948887..07e8be08c7 100644
--- a/lib/x509/x509.c
+++ b/lib/x509/x509.c
@@ -3593,6 +3593,7 @@ gnutls_x509_crt_list_import(gnutls_x509_crt_t * certs,
gnutls_x509_crt_import(certs[count], &tmp,
GNUTLS_X509_FMT_PEM);
if (ret < 0) {
+ count++;
gnutls_assert();
goto error;
}