Commit 499ad54d authored by Martin Storsjö's avatar Martin Storsjö

http: Clear the auth state on redirects

Currently we only try continuing with the same auth mechanism
as the initial request.
Signed-off-by: default avatarMartin Storsjö <>
parent e75bbcf4
......@@ -168,6 +168,9 @@ static int http_open_cnx(URLContext *h)
if (redirects++ >= MAX_REDIRECTS)
return AVERROR(EIO);
/* Restart the authentication process with the new target, which
* might use a different auth mechanism. */
memset(&s->auth_state, 0, sizeof(s->auth_state));
attempts = 0;
location_changed = 0;
goto redo;
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