Commit 80d0dcc9 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

clarified an argument's situation due to a false positive alert pointed out

by coverity.com
parent d51ad518
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -4402,7 +4402,12 @@ static CURLcode setup_conn(struct connectdata *conn,
    if(CURL_SOCKET_BAD == conn->sock[FIRSTSOCKET]) {
      bool connected = FALSE;

      /* Connect only if not already connected! */
      /* Connect only if not already connected!
       *
       * NOTE: hostaddr can be NULL when passed to this function, but that is
       * only for the case where we re-use an existing connection and thus
       * this code section will not be reached with hostaddr == NULL.
       */
      result = ConnectPlease(data, conn, hostaddr, &connected);

      if(connected) {