diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-10 22:50:16 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-08-10 22:53:27 +0200 |
commit | e8e874909fa89652f7981d9ea14930dddd2bee4a (patch) | |
tree | 18eed30d79c4adae9f18cfb2e5b3bb5a753ce330 | |
parent | 74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85 (diff) | |
download | libssh-e8e874909fa89652f7981d9ea14930dddd2bee4a.tar.gz libssh-e8e874909fa89652f7981d9ea14930dddd2bee4a.tar.xz libssh-e8e874909fa89652f7981d9ea14930dddd2bee4a.zip |
Fixed stupid "can't parse known host key" bug
due to a dangling \n in the base64 ...
-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 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'); |