diff options
author | Max Kellermann <max@duempel.org> | 2009-01-15 16:12:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-15 16:12:11 +0100 |
commit | d080677b15df42e3d61aa15e3319cfb099a060a2 (patch) | |
tree | 130023b389a790cfe5d2bd99cae1a059f9b4edf5 /src | |
parent | e9311545f5e101289a6d1f1b54eface70cf83717 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/input_curl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input_curl.c b/src/input_curl.c index f853a6043..9eac5c360 100644 --- a/src/input_curl.c +++ b/src/input_curl.c @@ -739,6 +739,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; } |