From 643ae2ca8b5ae66de22f8cadc54e8625e84a4dd2 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 30 Mar 2010 11:40:34 -0700 Subject: Allow test 538 to run even when proxy support is disabled --- tests/libtest/lib504.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/libtest/lib504.c') diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c index 418da2f8c..b8091f66a 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); -- cgit v1.2.3