(pop3d_user): Call check_login_delay().
Showing
1 changed file
with
10 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment