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

http_auth: fix potential NULL deref (fixes #18595)

parent 10c2c932
......@@ -357,7 +357,7 @@ int vlc_http_auth_ParseAuthenticationInfoHeader(
*/
psz_digest = AuthDigest( p_this, p_auth, psz_method, psz_path,
psz_username, psz_password );
if ( strcmp( psz_digest, psz_rspauth ) != 0 )
if( psz_digest == NULL || strcmp( psz_digest, psz_rspauth ) != 0 )
{
msg_Err( p_this, "HTTP Digest Access Authentication: server "
"replied with an invalid response digest "
......
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