1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-21 05:39:14 +00:00

Fix Ncat chat not announcing the highest user number.

This commit is contained in:
dmiller
2018-01-24 03:50:47 +00:00
parent 62e667e2eb
commit 14dd4bda82

View File

@@ -1155,7 +1155,7 @@ static int chat_announce_connect(int fd, const union sockaddr_u *su)
strbuf_sprintf(&buf, &size, &offset, "<announce> already connected: ");
count = 0;
for (i = 0; i < client_fdlist.fdmax; i++) {
for (i = 0; i <= client_fdlist.fdmax; i++) {
union sockaddr_u su;
socklen_t len = sizeof(su.storage);