From a5c83dda798f93cc7a76bbb50d89352117e6ec46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Fri, 1 Aug 2008 16:02:42 +0200 Subject: [PATCH] Don't leak every https parameters. --- modules/access_output/http.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/access_output/http.c b/modules/access_output/http.c index 4eb5b16b89..fff220d4a1 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", -- 2.39.2