summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libssh/keyfiles.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index d91d0351..b20890cf 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -886,8 +886,6 @@ static char **ssh_get_knownhost_line(SSH_SESSION *session,FILE **file, char *fil
continue;
}
}
- fclose(*file);
- *file = NULL;
leave_function();
return tokens;
}