mirror of
https://github.com/curl/curl.git
synced 2026-04-21 08:22:13 +03:00
url: Fix conn reuse for local ports and interfaces
- Fix connection reuse for when the proposed new conn 'needle' has a specified local port but does not have a specified device interface. Bug: https://curl.haxx.se/mail/lib-2016-11/0137.html Reported-by: bjt3[at]hotmail.com
This commit is contained in:
parent
f18f7bf934
commit
3e9c0230f4
1 changed files with 2 additions and 3 deletions
|
|
@ -3400,9 +3400,8 @@ ConnectionExists(struct Curl_easy *data,
|
|||
*/
|
||||
if((check->localport != needle->localport) ||
|
||||
(check->localportrange != needle->localportrange) ||
|
||||
!check->localdev ||
|
||||
!needle->localdev ||
|
||||
strcmp(check->localdev, needle->localdev))
|
||||
(needle->localdev &&
|
||||
(!check->localdev || strcmp(check->localdev, needle->localdev))))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue