Sleep on incorrect password with shadow backend.
This commit is contained in:
parent
52eeb9fc1e
commit
6fd9cd2246
4
shadow.c
4
shadow.c
@ -92,8 +92,12 @@ void run_pw_backend_child(void) {
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We don't want to keep it in memory longer than necessary,
|
||||||
|
// so clear *before* sleeping.
|
||||||
clear_buffer(buf, size);
|
clear_buffer(buf, size);
|
||||||
free(buf);
|
free(buf);
|
||||||
|
|
||||||
|
sleep(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_buffer(encpw, strlen(encpw));
|
clear_buffer(encpw, strlen(encpw));
|
||||||
|
Loading…
Reference in New Issue
Block a user