mirror of
https://github.com/curl/curl.git
synced 2026-04-20 17:51:13 +03:00
ConnectionExists: avoid NULL dereference
When checking for connections that are bound to a particular device we must make sure we don't compare with a NULL pointer.
This commit is contained in:
parent
3440f4d374
commit
821301de15
1 changed files with 1 additions and 0 deletions
|
|
@ -2948,6 +2948,7 @@ ConnectionExists(struct SessionHandle *data,
|
|||
if((check->localport != needle->localport) ||
|
||||
(check->localportrange != needle->localportrange) ||
|
||||
!check->localdev ||
|
||||
!needle->localdev ||
|
||||
strcmp(check->localdev, needle->localdev))
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue