From 46c63d5553c4f2d54b30679b6bfd22893fbb05f6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 24 Jun 2012 18:59:40 +0200 Subject: compat-libcurl3-7.15.5-2, sync with curl-7.15.5-15 --- curl-7.15.5-bz652557.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 curl-7.15.5-bz652557.patch (limited to 'curl-7.15.5-bz652557.patch') diff --git a/curl-7.15.5-bz652557.patch b/curl-7.15.5-bz652557.patch new file mode 100644 index 0000000..9aba025 --- /dev/null +++ b/curl-7.15.5-bz652557.patch @@ -0,0 +1,16 @@ +diff --git a/lib/ftp.c b/lib/ftp.c +index cd067e0..b1f61f9 100644 +--- a/lib/ftp.c ++++ b/lib/ftp.c +@@ -214,8 +214,10 @@ static CURLcode AllowServerConnect(struct connectdata *conn) + socklen_t size = (socklen_t) sizeof(struct sockaddr_in); + struct sockaddr_in add; + +- if(0 == getsockname(sock, (struct sockaddr *) &add, &size)) ++ if(0 == getsockname(sock, (struct sockaddr *) &add, &size)) { ++ size = sizeof(add); + s=accept(sock, (struct sockaddr *) &add, &size); ++ } + + sclose(sock); /* close the first socket */ + -- cgit