Sleep on incorrect password with shadow backend.

This commit is contained in:
Connor E 2019-01-27 18:12:54 +00:00
parent 52eeb9fc1e
commit 6fd9cd2246

View File

@ -92,8 +92,12 @@ void run_pw_backend_child(void) {
exit(EXIT_FAILURE);
}
// We don't want to keep it in memory longer than necessary,
// so clear *before* sleeping.
clear_buffer(buf, size);
free(buf);
sleep(2);
}
clear_buffer(encpw, strlen(encpw));