[vlc-commits] GnuTLS: fix invalid free when adding a CRL

Rémi Denis-Courmont git at videolan.org
Sat Jul 23 13:03:23 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 23 14:02:31 2011 +0300| [378456a65441a465440a62ee40bfea53ff2d905d] | committer: Rémi Denis-Courmont

GnuTLS: fix invalid free when adding a CRL

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=378456a65441a465440a62ee40bfea53ff2d905d
---

 modules/misc/gnutls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 881640c..e1cd8c9 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -873,7 +873,7 @@ gnutls_ServerAddCRL( tls_server_t *p_server, const char *psz_crl_path )
                                                 (p_server->p_sys))->x509_cred,
                                                 psz_local_path,
                                                 GNUTLS_X509_FMT_PEM );
-    LocaleFree( psz_crl_path );
+    LocaleFree( psz_local_path );
     if( val < 0 )
     {
         msg_Err( p_server, "cannot add CRL (%s): %s", psz_crl_path,



More information about the vlc-commits mailing list