Changelog
+Daniel (5 February 2005)
+- Eric Vergnaud found a use of an uninitialised variable in the ftp when doing
+ PORT on ipv6-enabled hosts.
+
+- David Byron pointed out we could use BUFSIZE to read data (in
+ lib/transfer.c) instead of using BUFSIZE -1.
+
Version 7.13.0 (1 February 2005)
Daniel (31 January 2005)
*
*/
- struct addrinfo hints, *res, *ai;
+ struct addrinfo *res, *ai;
struct sockaddr_storage ss;
socklen_t sslen;
char hbuf[NI_MAXHOST]="";
* Workaround for AIX5 getaddrinfo() problem (it doesn't set ai_socktype):
*/
if (ai->ai_socktype == 0)
- ai->ai_socktype = hints.ai_socktype;
+ ai->ai_socktype = SOCK_STREAM;
portsock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
if (portsock == CURL_SOCKET_BAD) {