Commit e9cbd35b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

httpd: fix error handling path

parent e454bb83
...@@ -1073,15 +1073,6 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname, ...@@ -1073,15 +1073,6 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
if (host == NULL) if (host == NULL)
goto error; goto error;
vlc_object_lock( host );
if( vlc_object_waitpipe( VLC_OBJECT( host ) ) == -1 )
{
msg_Err( host, "signaling pipe error: %m" );
vlc_object_unlock( host );
goto error;
}
vlc_object_unlock( host );
host->httpd = httpd; host->httpd = httpd;
vlc_mutex_init( &host->lock ); vlc_mutex_init( &host->lock );
host->i_ref = 1; host->i_ref = 1;
...@@ -1094,6 +1085,12 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname, ...@@ -1094,6 +1085,12 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
} }
for (host->nfd = 0; host->fds[host->nfd] != -1; host->nfd++); for (host->nfd = 0; host->fds[host->nfd] != -1; host->nfd++);
if( vlc_object_waitpipe( VLC_OBJECT( host ) ) == -1 )
{
msg_Err( host, "signaling pipe error: %m" );
goto error;
}
host->i_port = i_port; host->i_port = i_port;
host->psz_hostname = psz_host; host->psz_hostname = psz_host;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment