[vlc-devel] commit: Don't leak every https parameters. ( Rémi Duraffort )

git version control git at videolan.org
Fri Aug 1 16:18:05 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Aug  1 16:02:42 2008 +0200| [a5c83dda798f93cc7a76bbb50d89352117e6ec46] | committer: Rémi Duraffort 

Don't leak every https parameters.

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

 modules/access_output/http.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index 4eb5b16..fff220d 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -165,7 +165,7 @@ static int Open( vlc_object_t *p_this )
     char                *psz_user = NULL;
     char                *psz_pwd = NULL;
     char                *psz_mime = NULL;
-    const char          *psz_cert = NULL, *psz_key = NULL, *psz_ca = NULL,
+    char                *psz_cert = NULL, *psz_key = NULL, *psz_ca = NULL,
                         *psz_crl = NULL;
     vlc_value_t         val;
 
@@ -241,6 +241,11 @@ static int Open( vlc_object_t *p_this )
                                             psz_bind_addr, i_bind_port,
                                             psz_cert, psz_key, psz_ca,
                                             psz_crl );
+    free( psz_cert );
+    free( psz_key );
+    free( psz_ca );
+    free( psz_crl );
+
     if( p_sys->p_httpd_host == NULL )
     {
         msg_Err( p_access, "cannot listen on %s:%d",




More information about the vlc-devel mailing list