]> granicus.if.org Git - curl/commit
CURLOPT_OPENSOCKETFUNCTION: return error at once
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jun 2015 22:22:02 +0000 (00:22 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jun 2015 22:22:02 +0000 (00:22 +0200)
commit20ac3458068b2bd11c3ce802f091af66b55e2c23
tree5c39522dfcf7c26d0d40a7469a13e54f7a946dad
parenteaeeed2e8f20775421beacfbd394ff4fe99ab685
CURLOPT_OPENSOCKETFUNCTION: return error at once

When CURL_SOCKET_BAD is returned in the callback, it should be treated
as an error (CURLE_COULDNT_CONNECT) if no other socket is subsequently
created when trying to connect to a server.

Bug: http://curl.haxx.se/mail/lib-2015-06/0047.html
lib/connect.c
tests/data/Makefile.inc
tests/data/test1530 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1530.c [new file with mode: 0644]