diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-10 22:50:16 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-10 22:50:16 +0200 |
commit | f989452b3e7f473760bca1161c87e519310cb0c3 (patch) | |
tree | 9f7b05a612edd3a088630c02d5e6540aa93ea85e /libssh/keyfiles.c | |
parent | a2780d1dd43acdc25b7ac7d15b02e3fa1d173c22 (diff) | |
download | libssh-f989452b3e7f473760bca1161c87e519310cb0c3.tar.gz libssh-f989452b3e7f473760bca1161c87e519310cb0c3.tar.xz libssh-f989452b3e7f473760bca1161c87e519310cb0c3.zip |
Fixed stupid "can't parse known host key" bug
due to a dangling \n in the base64 ...
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r-- | libssh/keyfiles.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 12b58c3..ed786e5 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -1073,6 +1073,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'); |