From 9f1bbd2995bfc52ec1774290ac8adb68b110e883 Mon Sep 17 00:00:00 2001 From: John Marino Date: Fri, 2 Nov 2012 18:37:42 +0100 Subject: [PATCH] libfetch: what happened to ftp-cached commit? I thought I committed this fix last night. I don't know how it disappeared. It's the fix documented in FreeBSD PR Kern/153748 where a ftp-cached connection will close the connection too early when sending a request. --- lib/libfetch/ftp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 551405d5aa..7e6e7d34c7 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -1132,6 +1132,7 @@ ftp_request(struct url *url, const char *op, struct url_stat *us, /* just a stat */ if (strcmp(op, "STAT") == 0) { + --conn->ref; ftp_disconnect(conn); return (FILE *)1; /* bogus return value */ } -- 2.41.0