1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Fix an indexing error in Ncat datagram listen mode.

This commit is contained in:
david
2013-08-06 02:24:16 +00:00
parent 573cd469ab
commit bd64bba0e0

View File

@@ -680,7 +680,7 @@ static int ncat_listen_dgram(int proto)
/* Rebuild the udp socket which got burnt */
sockfd[fdn] = do_listen(SOCK_DGRAM, proto, &listenaddrs[fdn]);
if (sockfd[i] == -1)
if (sockfd[fdn] == -1)
bye("do_listen: %s", socket_strerror(socket_errno()));
FD_SET(sockfd[fdn], &listen_fds);
add_fd(&listen_fdlist, sockfd[fdn]);