mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-19 03:51:02 -05:00
psusan: fix assertion failure in SFTP server.
Uppity's built-in SFTP server makes up its file handle identifiers using random_read(). But when that server is reused in psusan, which doesn't have the random number generator enabled, you get an assertion failure.
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
|
||||
#include "putty.h"
|
||||
#include "ssh.h"
|
||||
#include "sshserver.h"
|
||||
#include "sftp.h"
|
||||
#include "tree234.h"
|
||||
|
||||
@ -65,7 +66,7 @@ static SftpServer *uss_new(const SftpServerVtable *vt)
|
||||
uss->dirhandles = newtree234(uss_dirhandle_cmp);
|
||||
uss->srv.vt = vt;
|
||||
|
||||
random_read(uss->handlekey, sizeof(uss->handlekey));
|
||||
make_unix_sftp_filehandle_key(uss->handlekey, sizeof(uss->handlekey));
|
||||
|
||||
return &uss->srv;
|
||||
}
|
||||
|
Reference in New Issue
Block a user