Commit 8eb8a0a8 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

bugfix: don't use the connectindex if it is -1

parent a4af6388
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1814,6 +1814,7 @@ CURLcode Curl_connect(struct UrlData *data,
      int index;
      index = conn->connectindex; /* get the index */
      Curl_disconnect(conn);      /* close the connection */
      if(-1 != index)
        data->connects[index]=NULL; /* clear the pointer */
    }
  }