From ecc93caaebe4d7c0168cedd99c3a6c42f7db9666 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 10 Feb 2012 16:26:20 +0100 Subject: parse_proxy: bail out on zero-length proxy names! The proxy parser function strips off trailing slashes off the proxy name which could lead to a mistaken zero length proxy name which would be treated as no proxy at all by subsequent functions! This is now detected and an error is returned. Verified by the new test 1329. Reported by: Chandrakant Bagul Bug: http://curl.haxx.se/mail/lib-2012-02/0000.html --- tests/data/test1329 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/data/test1329 (limited to 'tests/data/test1329') diff --git a/tests/data/test1329 b/tests/data/test1329 new file mode 100644 index 000000000..3d2d0cb6c --- /dev/null +++ b/tests/data/test1329 @@ -0,0 +1,30 @@ + + + +HTTP proxy + + + +# +# Client-side + + +http + + +/-prefixed proxy name + + +http://%HOSTIP:%HTTPPORT/we/want/that/page/1329 -x "/server" + + + +# +# Verify data after the test has been "shot" + +# 5 == CURLE_COULDNT_RESOLVE_PROXY + +5 + + + -- cgit v1.2.3