summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/http.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/stream/http.c b/stream/http.c
index ccf75eeba8..3d82ebab92 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -842,10 +842,8 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
}
break;
case 401: // Authentication required
- if( http_authenticate(http_hdr, url, &auth_retry)<0 ) {
- res = STREAM_UNSUPORTED;
+ if( http_authenticate(http_hdr, url, &auth_retry)<0 )
goto err_out;
- }
redirect = 1;
break;
default:
@@ -857,7 +855,7 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
err_out:
if (fd > 0) closesocket( fd );
fd = -1;
- res = -1;
+ res = STREAM_UNSUPORTED;
http_free( http_hdr );
out:
stream->fd = fd;