Commit Graph

2 Commits

Author SHA1 Message Date
Max Kunzelmann
51e9e6ceda Fix retry behaviour in while loop with mlock()
If mlock() fails with errno EAGAIN, it should be retried up to five
times, which is tracked in the retries variable. However, the `return
false` statement after the switch case makes the function return false
after the first failed mlock() call.

Remove this statement to actually retry up to five times.

Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
2023-11-17 13:56:41 +01:00
Robin Ebert
bdeb891378 Use mlock for password buffer 2022-06-15 10:49:32 +02:00