diff options
author | dartraiden <wowemuh@gmail.com> | 2019-07-18 16:27:13 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2019-07-18 16:28:43 +0300 |
commit | fed632f293b2ac474f5da2d65f35c92867bdaebc (patch) | |
tree | 7c9c7f9077c756f09b9bc113cf3d706ac153e62a /libs/libcurl/src/connect.c | |
parent | 9451639c7300d806afe81ef5dc680f8f4472f6f8 (diff) |
libcurl: update to 7.65.2
Diffstat (limited to 'libs/libcurl/src/connect.c')
-rw-r--r-- | libs/libcurl/src/connect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/libcurl/src/connect.c b/libs/libcurl/src/connect.c index 002535b429..4a1f2c6406 100644 --- a/libs/libcurl/src/connect.c +++ b/libs/libcurl/src/connect.c @@ -368,6 +368,11 @@ static CURLcode bindlocal(struct connectdata *conn, infof(data, "Name '%s' family %i resolved to '%s' family %i\n", dev, af, myhost, h->addr->ai_family); Curl_resolv_unlock(data, h); + if(af != h->addr->ai_family) { + /* bad IP version combo, signal the caller to try another address + family if available */ + return CURLE_UNSUPPORTED_PROTOCOL; + } done = 1; } else { |