From: Yang Tse Date: Sun, 15 Jan 2012 18:21:55 +0000 (+0100) Subject: Curl_proxyCONNECT() trace known bug #39 X-Git-Tag: curl-7_24_0~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d62c5a6fcd17b3e8c65326612818b8a8b94d690;p=thirdparty%2Fcurl.git Curl_proxyCONNECT() trace known bug #39 --- diff --git a/lib/http_proxy.c b/lib/http_proxy.c index fbf23a9d87..b200347814 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -409,8 +409,15 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, keepon=FALSE; } } - else + else { keepon = FALSE; + if(200 == data->info.httpproxycode) { + if(gotbytes - (i+1)) + failf(data, "Proxy CONNECT followed by %zd bytes " + "of opaque data. Data ignored (known bug #39)", + gotbytes - (i+1)); + } + } break; /* breaks out of for-loop, not switch() */ }