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

http: avoid NULL dereference

parent aa65f6c6
...@@ -1216,11 +1216,11 @@ static int Request( access_t *p_access, uint64_t i_tell ) ...@@ -1216,11 +1216,11 @@ static int Request( access_t *p_access, uint64_t i_tell )
} }
/* Authentication */ /* Authentication */
if( p_sys->url.psz_username || p_sys->url.psz_password ) if( p_sys->url.psz_username && p_sys->url.psz_password )
AuthReply( p_access, "", &p_sys->url, &p_sys->auth ); AuthReply( p_access, "", &p_sys->url, &p_sys->auth );
/* Proxy Authentication */ /* Proxy Authentication */
if( p_sys->proxy.psz_username || p_sys->proxy.psz_password ) if( p_sys->proxy.psz_username && p_sys->proxy.psz_password )
AuthReply( p_access, "Proxy-", &p_sys->proxy, &p_sys->proxy_auth ); AuthReply( p_access, "Proxy-", &p_sys->proxy, &p_sys->proxy_auth );
/* ICY meta data request */ /* ICY meta data request */
......
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