curl: Check curl_multi_add_handle()'s return code
commitc34dc07f9f01cf686e512f939aece744723072cd
authorMax Reitz <mreitz@redhat.com>
Tue, 10 Sep 2019 12:41:36 +0000 (10 14:41 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 16 Sep 2019 13:31:12 +0000 (16 15:31 +0200)
treed31b56df77a3691c15cae0f880e6fadd8cb2f5be
parentbfb23b480a49114315877aacf700b49453e0f9d9
curl: Check curl_multi_add_handle()'s return code

If we had done that all along, debugging would have been much simpler.
(Also, I/O errors are better than hangs.)

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190910124136.10565-8-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/curl.c