diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-04-29 16:46:49 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-04-29 16:46:49 +0200 |
commit | 821301de15520d51f4cbdba30372bc062f8a955a (patch) | |
tree | 544f84b658ace5b1bce47201ee90e2ff2ea6a8ab /lib | |
parent | 3440f4d3742d913863cedd0865916c0dd47063a6 (diff) | |
download | curl-821301de15520d51f4cbdba30372bc062f8a955a.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 1 |
1 files changed, 1 insertions, 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; } |