Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/fetch/dist/libfetch libfetch-2.27:
details: https://anonhg.NetBSD.org/src/rev/84f26e84c19c
branches: trunk
changeset: 750712:84f26e84c19c
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Jan 11 19:40:01 2010 +0000
description:
libfetch-2.27:
Fix a bug in the connection caching for FTP.
diffstat:
external/bsd/fetch/dist/libfetch/ftp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r dbf8b9c523ae -r 84f26e84c19c external/bsd/fetch/dist/libfetch/ftp.c
--- a/external/bsd/fetch/dist/libfetch/ftp.c Mon Jan 11 19:19:57 2010 +0000
+++ b/external/bsd/fetch/dist/libfetch/ftp.c Mon Jan 11 19:40:01 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.1.1.8 2009/10/15 12:59:59 joerg Exp $ */
+/* $NetBSD: ftp.c,v 1.1.1.9 2010/01/11 19:40:01 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2008, 2009 Joerg Sonnenberger <joerg%NetBSD.org@localhost>
@@ -1088,7 +1088,7 @@
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));
Home |
Main Index |
Thread Index |
Old Index