mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
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
a4afa23c8a
commit
0ff129607b
@ -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>
|
2006-10-13 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* installer/Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated
|
* 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;
|
return -1;
|
||||||
}
|
}
|
||||||
while (!feof(fd) && (c = fgetc(fd)) != '\r' && c != '\n') pubkey_len++;
|
while (!feof(fd) && (c = fgetc(fd)) != '\r' && c != '\n') pubkey_len++;
|
||||||
|
if (c != '\r' || c != '\n')
|
||||||
|
pubkey_len--;
|
||||||
rewind(fd);
|
rewind(fd);
|
||||||
|
|
||||||
if (pubkey_len <= 1) {
|
if (pubkey_len <= 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user