[vlc-commits] gnutls: fix double free

Rémi Denis-Courmont git at videolan.org
Sun Jan 10 08:58:44 CET 2016


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan  9 20:51:19 2016 +0200| [74f120e8ba327a76ddbd0480775f19f6da4865d5] | committer: Rémi Denis-Courmont

gnutls: fix double free

(cherry picked from commit 1617e9a8b05a0a06dd6fb51e1653f4c0f5360445)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=74f120e8ba327a76ddbd0480775f19f6da4865d5
---

 modules/misc/gnutls.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 07a978b..ddde9fe 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -710,7 +710,6 @@ static int OpenServer (vlc_tls_creds_t *crd, const char *cert, const char *key)
     if (val < 0)
     {
         msg_Err (crd, "cannot load X.509 key: %s", gnutls_strerror (val));
-        gnutls_certificate_free_credentials (sys->x509_cred);
         goto error;
     }
 



More information about the vlc-commits mailing list