Commit 821301de authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 3440f4d3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
    }