summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c
index 1cfcdf2e1..a0750ed00 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -24,6 +24,10 @@ void bad_password(User * u)
{
time_t now = time(NULL);
+ if (!u) {
+ return;
+ }
+
if (!BadPassLimit)
return;