]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix memleak in gnutls_x509_crl_list_import()
authorTim Rühsen <tim.ruehsen@gmx.de>
Mon, 7 Aug 2017 21:04:05 +0000 (23:04 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 8 Aug 2017 19:17:56 +0000 (21:17 +0200)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
lib/x509/crl.c

index 2df830b2b3aef60ed598cdedcd892ba8aa37c888..7436a6e53eb70aa9ecc00296f33fe20fc82b9b27 100644 (file)
@@ -1398,6 +1398,7 @@ gnutls_x509_crl_list_import(gnutls_x509_crl_t * crls,
                                                   GNUTLS_X509_FMT_PEM);
                        if (ret < 0) {
                                gnutls_assert();
+                               count++;
                                goto error;
                        }
                }