Commit f563471a f563471a4ad1c47373c2bb3bdd0a7c3b1dcced96 by Sergey Poznyakoff

(pop3d_user): Call check_login_delay().

1 parent f58c8f19
...@@ -100,6 +100,16 @@ pop3d_user (const char *arg) ...@@ -100,6 +100,16 @@ pop3d_user (const char *arg)
100 return ERR_BAD_CMD; 100 return ERR_BAD_CMD;
101 } 101 }
102 102
103 if (check_login_delay (auth_data->name))
104 {
105 syslog (LOG_INFO,
106 _("User '%s' tried to log in within the minimum allowed delay"),
107 auth_data->name);
108 state = AUTHORIZATION;
109 mu_auth_data_free (auth_data);
110 return ERR_LOGIN_DELAY;
111 }
112
103 if (auth_data->change_uid) 113 if (auth_data->change_uid)
104 setuid (auth_data->uid); 114 setuid (auth_data->uid);
105 115
......