Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error buffer not set if connection to multiple addresses fails #544

Closed
MoSal opened this issue Nov 27, 2015 · 0 comments
Closed

error buffer not set if connection to multiple addresses fails #544

MoSal opened this issue Nov 27, 2015 · 0 comments

Comments

@MoSal
Copy link
Contributor

MoSal commented Nov 27, 2015

Suppose you ask libcurl to resolve a hostname (e.g. google.com) to IPv6 addresses only. But you only have IPv4 connectivity. libcurl would correctly fail with CURLE_COULDNT_CONNECT. But the error buffer set by CURLOPT_ERRORBUFFER would be empty.

I think adding a failf() call above this line would work:
https://github.com/bagder/curl/blob/master/lib/connect.c#L1176

But I don't know if that's the right place to do it.

@bagder bagder closed this as completed in 645ed11 Apr 8, 2016
@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants