Nullify p_httpd to avoid crashes
authorSebastien Escudier <sebastien-devel@celeos.eu>
Tue, 23 Sep 2008 09:13:47 +0000 (11:13 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 23 Sep 2008 19:20:23 +0000 (22:20 +0300)
Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
src/network/httpd.c

index 06bd9dc..5f5f377 100644 (file)
@@ -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 );