fuzzing - Set postauth user to root since that's what it runs as

This commit is contained in:
Matt Johnston 2020-11-17 19:28:11 +08:00
parent 3c88d6536a
commit 220ba993a2

View File

@ -262,8 +262,7 @@ int fuzz_run_server(const uint8_t *Data, size_t Size, int skip_kexmaths, int aut
if (authdone) {
ses.authstate.authdone = 1;
char *me = fuzz_getpwuid(getuid())->pw_name;
fill_passwd(me);
fill_passwd("root");
}
m_malloc_set_epoch(1);