summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pacman/download.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/download.c b/src/pacman/download.c
index 4f17753d..8fbcd647 100644
--- a/src/pacman/download.c
+++ b/src/pacman/download.c
@@ -158,6 +158,7 @@ int downloadfiles(list_t *servers, const char *localpath, list_t *files)
if(!FtpChdir(server->path, control)) {
fprintf(stderr, "error: could not cwd to %s: %s\n", server->path,
FtpLastResponse(control));
+ FtpQuit(control);
continue;
}
if(!pmo_nopassiveftp) {