Commit 08c47fec authored by Michael Hanselmann's avatar Michael Hanselmann Committed by Rémi Denis-Courmont

raop: Always read headers from wire

Otherwise they can be mixed up with the next request. Until now, the
connection was always terminated after an error. However, with
authentication, the request can be repeated with authentication
information.
Signed-off-by: default avatarMichael Hanselmann <public@hansmi.ch>
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 5b64e0ba
...@@ -810,14 +810,6 @@ static int ExecRequest( vlc_object_t *p_this, const char *psz_method, ...@@ -810,14 +810,6 @@ static int ExecRequest( vlc_object_t *p_this, const char *psz_method,
goto error; goto error;
} }
if ( i_status != 200 )
{
msg_Err( p_this, "Request failed (%s), status is %d",
p_sys->psz_last_status_line, i_status );
i_err = VLC_EGENERIC;
goto error;
}
if ( p_resp_headers ) if ( p_resp_headers )
vlc_dictionary_clear( p_resp_headers, FreeHeader, NULL ); vlc_dictionary_clear( p_resp_headers, FreeHeader, NULL );
...@@ -830,6 +822,14 @@ static int ExecRequest( vlc_object_t *p_this, const char *psz_method, ...@@ -830,6 +822,14 @@ static int ExecRequest( vlc_object_t *p_this, const char *psz_method,
goto error; goto error;
} }
if ( i_status != 200 )
{
msg_Err( p_this, "Request failed (%s), status is %d",
p_sys->psz_last_status_line, i_status );
i_err = VLC_EGENERIC;
goto error;
}
error: error:
FREENULL( p_sys->psz_last_status_line ); FREENULL( p_sys->psz_last_status_line );
......
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