2006-08-11 Esteban Sanchez <estebans@artica.es>
* ssh/libssh2/userauth.c: Fixed a bug when the public key file do not finish with '\n' or '\r'. * bin/PandoraAgent.exe: Updated to new changes. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
24e89df213
commit
05ed8370bc
|
@ -1,3 +1,10 @@
|
|||
2006-08-11 Esteban Sanchez <estebans@artica.es>
|
||||
|
||||
* ssh/libssh2/userauth.c: Fixed a bug when the public key file do
|
||||
not finish with '\n' or '\r'.
|
||||
|
||||
* bin/PandoraAgent.exe: Updated to new changes.
|
||||
|
||||
2006-10-13 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* installer/Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated
|
||||
|
|
Binary file not shown.
|
@ -251,6 +251,8 @@ static int libssh2_file_read_publickey(LIBSSH2_SESSION *session, unsigned char *
|
|||
return -1;
|
||||
}
|
||||
while (!feof(fd) && (c = fgetc(fd)) != '\r' && c != '\n') pubkey_len++;
|
||||
if (c != '\r' || c != '\n')
|
||||
pubkey_len--;
|
||||
rewind(fd);
|
||||
|
||||
if (pubkey_len <= 1) {
|
||||
|
|
Loading…
Reference in New Issue