Skip to content

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

Description

@MoSal

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions