From: Dan Fandrich Date: Tue, 30 Mar 2010 18:40:34 +0000 (-0700) Subject: Allow test 538 to run even when proxy support is disabled X-Git-Tag: curl-7_20_1~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=643ae2ca8b5ae66de22f8cadc54e8625e84a4dd2;p=thirdparty%2Fcurl.git Allow test 538 to run even when proxy support is disabled --- diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c index 418da2f8cb..b8091f66af 100644 --- a/tests/libtest/lib504.c +++ b/tests/libtest/lib504.c @@ -51,9 +51,10 @@ int test(char *URL) return TEST_ERR_MAJOR_BAD; } - /* the point here being that there must not run anything on the given + /* The point here is that there must not be anything running on the given proxy port */ - test_setopt(c, CURLOPT_PROXY, libtest_arg2); + if (libtest_arg2) + test_setopt(c, CURLOPT_PROXY, libtest_arg2); test_setopt(c, CURLOPT_URL, URL); test_setopt(c, CURLOPT_VERBOSE, 1L);