[vlc-devel] commit: Nullify p_httpd to avoid crashes (Sebastien Escudier )

git version control git at videolan.org
Tue Sep 23 21:19:09 CEST 2008


vlc | branch: 0.9-bugfix | Sebastien Escudier <sebastien-devel at celeos.eu> | Tue Sep 23 11:13:47 2008 +0200| [d9e6766624f1e85814bce07cc10eee60ded679bb] | committer: Rémi Denis-Courmont 

Nullify p_httpd to avoid crashes

Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>

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

 src/network/httpd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/network/httpd.c b/src/network/httpd.c
index c98b51c..6106959 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1120,6 +1120,7 @@ error:
     free( psz_host );
     if( httpd->i_host <= 0 )
     {
+        libvlc_priv (httpd->p_libvlc)->p_httpd = NULL;
         vlc_object_release( httpd );
         vlc_object_detach( httpd );
         vlc_object_release( httpd );




More information about the vlc-devel mailing list