summaryrefslogtreecommitdiff
path: root/pop3d
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-10-11 10:59:50 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-10-11 10:59:50 +0000
commitf563471a4ad1c47373c2bb3bdd0a7c3b1dcced96 (patch)
treee7422405c9a155457123d2f516fe62790553da80 /pop3d
parentf58c8f1970b78362ef04c903f5702a15d5ea3904 (diff)
downloadmailutils-f563471a4ad1c47373c2bb3bdd0a7c3b1dcced96.tar.gz
mailutils-f563471a4ad1c47373c2bb3bdd0a7c3b1dcced96.tar.bz2
(pop3d_user): Call check_login_delay().
Diffstat (limited to 'pop3d')
-rw-r--r--pop3d/user.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pop3d/user.c b/pop3d/user.c
index f89b35f52..ba29e587a 100644
--- a/pop3d/user.c
+++ b/pop3d/user.c
@@ -100,6 +100,16 @@ pop3d_user (const char *arg)
return ERR_BAD_CMD;
}
+ if (check_login_delay (auth_data->name))
+ {
+ syslog (LOG_INFO,
+ _("User '%s' tried to log in within the minimum allowed delay"),
+ auth_data->name);
+ state = AUTHORIZATION;
+ mu_auth_data_free (auth_data);
+ return ERR_LOGIN_DELAY;
+ }
+
if (auth_data->change_uid)
setuid (auth_data->uid);

Return to:

Send suggestions and report system problems to the System administrator.