We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 094b5f3 commit 1667d55Copy full SHA for 1667d55
lib/connect.c
@@ -368,6 +368,11 @@ static CURLcode bindlocal(struct connectdata *conn,
368
infof(data, "Name '%s' family %i resolved to '%s' family %i\n",
369
dev, af, myhost, h->addr->ai_family);
370
Curl_resolv_unlock(data, h);
371
+ if(af != h->addr->ai_family) {
372
+ /* bad IP version combo, signal the caller to try another address
373
+ family if available */
374
+ return CURLE_UNSUPPORTED_PROTOCOL;
375
+ }
376
done = 1;
377
}
378
else {
0 commit comments