]> git.ipfire.org Git - thirdparty/curl.git/commit
CURLOPT_SOCKOPTFUNCTION: return proper error code
authorDaniel Stenberg <daniel@haxx.se>
Wed, 9 Feb 2011 14:36:36 +0000 (15:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 9 Feb 2011 14:36:36 +0000 (15:36 +0100)
commitb370fcd300902d1310696088decf53ee2a286b95
tree7f84a1619fee6ef9de0e3387f8f92ad96500ff63
parent5348e8f276dac01e98f3c1e3fcdfa363f1df6cf8
CURLOPT_SOCKOPTFUNCTION: return proper error code

When the callback returns an error, this function must make sure to return
CURLE_ABORTED_BY_CALLBACK properly and not CURLE_OK as before to allow the
callback to properly abort the operation.
lib/connect.c