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

Fix compilation. Thanks bigben

parent 172d71c4
......@@ -2064,17 +2064,18 @@ static void httpd_HostThread( httpd_host_t *host )
{
if( answer && ( url->p_acl != NULL ) )
{
char *ip = httpd_ClientIP( cl );
if( ip != NULL )
char ip[NI_MAXNUMERICHOST];
if( httpd_ClientIP( cl, ip ) != NULL )
{
if( ACL_Check( url->p_acl, ip ) )
{
b_hosts_failed = VLC_TRUE;
free( ip );
break;
}
free( ip );
}
else
b_hosts_failed = VLC_TRUE;
}
if( answer && ( *url->psz_user || *url->psz_password ) )
......
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