Commit 36a35142 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

the check in ConnectionExists() for not re-using a non-resolved connection now

applies for asynch name resolves in general and not only ares
parent e1edd41e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1937,7 +1937,7 @@ ConnectionExists(struct SessionHandle *data,
      /* NULL pointer means not filled-in entry */
      /* NULL pointer means not filled-in entry */
      continue;
      continue;


#ifdef USE_ARES
#ifdef CURLRES_ASYNCH
    /* ip_addr_str is NULL only if the resolving of the name hasn't completed
    /* ip_addr_str is NULL only if the resolving of the name hasn't completed
       yet and until then we don't re-use this connection */
       yet and until then we don't re-use this connection */
    if (!check->ip_addr_str)
    if (!check->ip_addr_str)