From e8e874909fa89652f7981d9ea14930dddd2bee4a Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 10 Aug 2009 22:50:16 +0200 Subject: Fixed stupid "can't parse known host key" bug due to a dangling \n in the base64 ... --- libssh/keyfiles.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index ad456cdf..bac0ea2f 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -1074,6 +1074,7 @@ static char **ssh_get_knownhost_line(SSH_SESSION *session, FILE **file, while (fgets(buffer, sizeof(buffer), *file)) { ptr = strchr(buffer, '\n'); if (ptr) { + *ptr = '\0'; } ptr = strchr(buffer,'\r'); -- cgit v1.2.3