summaryrefslogtreecommitdiffstats
path: root/curl-7.15.5-bz652557.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-24 18:59:40 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-24 18:59:40 +0200
commit46c63d5553c4f2d54b30679b6bfd22893fbb05f6 (patch)
treeae6557a386696721dbbf8991bd21958051083173 /curl-7.15.5-bz652557.patch
parent5f92f6832f1ee6d21ba25a5cb5c2d180f91a0ea5 (diff)
compat-libcurl3-7.15.5-2, sync with curl-7.15.5-15
Diffstat (limited to 'curl-7.15.5-bz652557.patch')
-rw-r--r--curl-7.15.5-bz652557.patch16
1 files changed, 16 insertions, 0 deletions
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 */
+