diff --git a/src/sbbs3/ftpsrvr.c b/src/sbbs3/ftpsrvr.c index e25129735882b37ef4d5c46660e42f3916b4564a..aa7f0b7a0216528c4b819fa5edc5d6a09614ca92 100644 --- a/src/sbbs3/ftpsrvr.c +++ b/src/sbbs3/ftpsrvr.c @@ -1781,7 +1781,7 @@ static BOOL badlogin(SOCKET sock, CRYPT_SESSION sess, ulong* login_attempts ftp_hacklog("FTP LOGIN", user, passwd, client->host, addr); if(startup->login_attempt.filter_threshold && count>=startup->login_attempt.filter_threshold) { char reason[128]; - snprintf(reason, sizeof reason, "- TOO MANY CONSECUTIVE FAILED LOGIN ATTEMPTS (%lu in %s)" + snprintf(reason, sizeof reason, "TOO MANY CONSECUTIVE FAILED LOGIN ATTEMPTS (%lu in %s)" ,count, seconds_to_str(attempt.time - attempt.first, tmp)); filter_ip(&scfg, client->protocol, reason, client->host, client->addr, user, /* fname: */NULL); } diff --git a/src/sbbs3/login.cpp b/src/sbbs3/login.cpp index 0fbc6a0caa9c342711183ba784d8c8d5f4372174..49e460c17b8860658a5658e522f77220f0802671 100644 --- a/src/sbbs3/login.cpp +++ b/src/sbbs3/login.cpp @@ -161,7 +161,7 @@ void sbbs_t::badlogin(const char* user, const char* passwd, const char* protocol char ipaddr[INET6_ADDRSTRLEN]; inet_addrtop(addr, ipaddr, sizeof(ipaddr)); getnameinfo(&addr->addr, addr_len, host_name, sizeof(host_name), NULL, 0, NI_NAMEREQD); - snprintf(reason, sizeof reason, "- TOO MANY CONSECUTIVE FAILED LOGIN ATTEMPTS (%lu in %s)" + snprintf(reason, sizeof reason, "TOO MANY CONSECUTIVE FAILED LOGIN ATTEMPTS (%lu in %s)" ,count, seconds_to_str(attempt.time - attempt.first, tmp)); filter_ip(&cfg, protocol, reason, host_name, ipaddr, user, /* fname: */NULL); } diff --git a/src/sbbs3/services.c b/src/sbbs3/services.c index 33cebf0cc84f3638be05b8b0799a1a924261c741..5782ca07277c85d912d82318c1f150e0ebde474b 100644 --- a/src/sbbs3/services.c +++ b/src/sbbs3/services.c @@ -354,7 +354,7 @@ static void badlogin(SOCKET sock, char* user, char* passwd, client_t* client, un #endif } if(startup->login_attempt.filter_threshold && count>=startup->login_attempt.filter_threshold) { - snprintf(reason, sizeof reason, "- TOO MANY CONSECUTIVE FAILED LOGIN ATTEMPTS (%lu in %s)" + snprintf(reason, sizeof reason, "TOO MANY CONSECUTIVE FAILED LOGIN ATTEMPTS (%lu in %s)" ,count, seconds_to_str(attempt.time - attempt.first, tmp)); filter_ip(&scfg, client->protocol, reason, client->host, client->addr, user, /* fname: */NULL); }