summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-11 17:23:10 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-11 17:23:10 +0000
commit3a436c30f3f63dd5144453e5bd5d4004317ee560 (patch)
tree8c4c4890be37c704689d0dfbb7da4d6ea0b72b96 /net
parent4c9c9350807a994b40ab107e3fe05f3399c65534 (diff)
downloadpkgsrc-3a436c30f3f63dd5144453e5bd5d4004317ee560.tar.gz
libfetch-2.27:
The connection sharing didn't handle the case of active transfers correctly and tried to close the connection in that case (PR 42607). Correctly check if there is a transfer going on and just leave the connection alone in that case.
Diffstat (limited to 'net')
-rw-r--r--net/libfetch/Makefile4
-rw-r--r--net/libfetch/files/ftp.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/libfetch/Makefile b/net/libfetch/Makefile
index ee4851adeab..86e49d4624b 100644
--- a/net/libfetch/Makefile
+++ b/net/libfetch/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.33 2009/10/15 12:36:57 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2010/01/11 17:23:10 joerg Exp $
#
-DISTNAME= libfetch-2.26
+DISTNAME= libfetch-2.27
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/net/libfetch/files/ftp.c b/net/libfetch/files/ftp.c
index 4745b5e16c6..669f44cad3f 100644
--- a/net/libfetch/files/ftp.c
+++ b/net/libfetch/files/ftp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.30 2009/10/15 12:36:57 joerg Exp $ */
+/* $NetBSD: ftp.c,v 1.31 2010/01/11 17:23:10 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2008, 2009 Joerg Sonnenberger <joerg@NetBSD.org>
@@ -1088,7 +1088,7 @@ ftp_cached_connect(struct url *url, struct url *purl, const char *flags)
return (NULL);
doc = strdup(url->doc);
if (doc != NULL) {
- if (cached_connection)
+ if (cached_connection && !cached_connection->is_active)
ftp_disconnect(cached_connection);
cached_connection = fetch_ref(conn);
memcpy(&cached_host, url, sizeof(*url));