# HG changeset patch # User reimar # Date 1165779521 0 # Node ID 79d969f9eec0ac0f12fac50cfabd37b2fd939cba # Parent 546cf4a6377ad0b74b64a9406360b59e87421ad9 STREAM_UNSUPPORTED is -1, so use the former for return value in all places. Thanks to Nicolas Baradakis (nbk sitadelle com) for noticing. diff -r 546cf4a6377a -r 79d969f9eec0 stream/http.c --- a/stream/http.c Sun Dec 10 19:35:39 2006 +0000 +++ b/stream/http.c Sun Dec 10 19:38:41 2006 +0000 @@ -842,10 +842,8 @@ } 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 @@ err_out: if (fd > 0) closesocket( fd ); fd = -1; - res = -1; + res = STREAM_UNSUPORTED; http_free( http_hdr ); out: stream->fd = fd;