Commit 2bf3bbdb authored by Ilkka Ollakka's avatar Ilkka Ollakka

Disconnect before trying with authentication

Disconnects http-connection before trying with authentication info.
This enables to use http-authentication sources without leaking fds

Kinda work-around
parent 2486b5f6
......@@ -440,6 +440,7 @@ connect:
if( p_sys->url.psz_username && p_sys->url.psz_password &&
p_sys->auth.psz_nonce && p_sys->auth.i_nonce == 0 )
{
Disconnect( p_access );
goto connect;
}
snprintf( psz_msg, 250,
......@@ -457,6 +458,7 @@ connect:
if( psz_password ) p_sys->url.psz_password = strdup( psz_password );
free( psz_login );
free( psz_password );
Disconnect( p_access );
goto connect;
}
else
......
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