Yang Tse 2008-01-08 01:05:50 +00:00
parent 34d02d1969
commit 59b4bdf78d
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____| * \___|\___/|_| \_\_____|
* *
* Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
* *
* This software is licensed as described in the file COPYING, which * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -694,7 +694,7 @@ singleipconnect(struct connectdata *conn,
addr->protocol=ai->ai_protocol; addr->protocol=ai->ai_protocol;
addr->addrlen = addr->addrlen =
(ai->ai_addrlen < (socklen_t)sizeof(struct Curl_sockaddr_storage)) ? (ai->ai_addrlen < (socklen_t)sizeof(struct Curl_sockaddr_storage)) ?
ai->ai_addrlen : (socklen_t)sizeof(struct Curl_sockaddr_storage); (unsigned int)ai->ai_addrlen : sizeof(struct Curl_sockaddr_storage);
memcpy(&addr->addr, ai->ai_addr, addr->addrlen); memcpy(&addr->addr, ai->ai_addr, addr->addrlen);
/* If set, use opensocket callback to get the socket */ /* If set, use opensocket callback to get the socket */