Commit 53a9fdf0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

use sclose() to close sockets

parent ef436bdb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
    /* This seems to be an IPv6-capable stack, use PF_UNSPEC for the widest
     * possible checks. And close the socket again.
     */
    close(s);
    sclose(s);
 
  memset(&hints, 0, sizeof(hints));
  hints.ai_family = pf;