summaryrefslogtreecommitdiffstats
path: root/curl-7.15.5-bz652557.patch
diff options
context:
space:
mode:
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 */
+