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

Attempt to fix a crash in src/misc/httpd.c

parent 776c5dd8
......@@ -411,14 +411,14 @@ int *__net_ListenTCP( vlc_object_t *p_this, const char *psz_host, int i_port )
else
{
newpi[i_size - 2] = fd;
if( pi_handles == NULL )
newpi[i_size - 1] = -1;
pi_handles = newpi;
}
}
vlc_freeaddrinfo( res );
if( pi_handles != NULL )
pi_handles[i_size - 1] = -1;
return pi_handles;
}
......
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