aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-09-18 22:57:33 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-09-18 22:57:33 +0000
commitf0c7656f65b26f3a27a5df763e3e0b3022455a14 (patch)
tree53582870be7fcd41c2c00c0d57e6d79aa8f62682 /ftp
parentfe40b60865a55559cc46a4c4fd6ad640cf40e3fc (diff)
downloadports-f0c7656f65b26f3a27a5df763e3e0b3022455a14.tar.gz
ports-f0c7656f65b26f3a27a5df763e3e0b3022455a14.zip
Notes
Diffstat (limited to 'ftp')
-rw-r--r--ftp/prozilla/files/patch-libprozilla__src__connect.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/ftp/prozilla/files/patch-libprozilla__src__connect.c b/ftp/prozilla/files/patch-libprozilla__src__connect.c
new file mode 100644
index 000000000000..4ec3c4784610
--- /dev/null
+++ b/ftp/prozilla/files/patch-libprozilla__src__connect.c
@@ -0,0 +1,45 @@
+--- ./libprozilla/src/connect.c.orig Wed Feb 8 14:19:54 2006
++++ ./libprozilla/src/connect.c Sun Sep 17 14:00:02 2006
+@@ -54,16 +54,14 @@
+ hints.ai_socktype = SOCK_STREAM;
+
+ error = getaddrinfo(name, szPort, &hints, &res);
+- if (error) {
+- freeaddrinfo(res);
+- return HOSTERR;
+- }
++ if (error)
++ return HOSTERR;
+
+
+ /* Create a socket. */
+ if ((*sock = socket(res->ai_family, res->ai_socktype, IPPROTO_TCP)) < 1)
+ {
+- free(res);
++ freeaddrinfo(res);
+ return CONSOCKERR;
+ }
+
+@@ -110,11 +108,11 @@
+
+ if (errno == ECONNREFUSED)
+ {
+- free(res);
++ freeaddrinfo(res);
+ return CONREFUSED;
+ } else
+ {
+- free(res);
++ freeaddrinfo(res);
+ return CONERROR;
+ }
+ } else
+@@ -133,7 +131,7 @@
+ setsockopt(*sock, SOL_SOCKET, SO_KEEPALIVE,
+ (char *) &opt, (int) sizeof(opt));
+
+- free(res);
++ freeaddrinfo(res);
+
+ return NOCONERROR;
+ }