mirror of
https://github.com/videolan/vlc.git
synced 2024-11-28 20:34:12 +08:00
* src/misc/httpd.c: Do not dereference a possibly NULL pointer.
This commit is contained in:
parent
b601408c5a
commit
ab28b96bbe
@ -2166,7 +2166,8 @@ static void httpd_HostThread( httpd_host_t *host )
|
||||
if( b64 ) auth = malloc( strlen(b64) + 1 );
|
||||
else auth = malloc( strlen("") + 1 );
|
||||
|
||||
if( !strncasecmp( b64, "BASIC", 5 ) )
|
||||
if( b64 != NULL
|
||||
&& !strncasecmp( b64, "BASIC", 5 ) )
|
||||
{
|
||||
b64 += 5;
|
||||
while( *b64 == ' ' )
|
||||
|
Loading…
Reference in New Issue
Block a user