From fa3899f7b0e6c3250f3cb38ac4f9a07d0ab80874 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 15 Jan 2009 16:12:11 +0100 Subject: input_curl: call curl_multi_info_read() in constructor To check for early connect failures, call curl_multi_info_read() in the constructor input_curl_open(). This fixes an assertion failure. --- src/input_curl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/input_curl.c b/src/input_curl.c index d3bc219c8..8372f9924 100644 --- a/src/input_curl.c +++ b/src/input_curl.c @@ -926,6 +926,12 @@ input_curl_open(struct input_stream *is, const char *url) return false; } + ret = input_curl_multi_info_read(is); + if (!ret) { + input_curl_free(is); + return false; + } + return true; } -- cgit v1.2.3