1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

some bugfixes from Eddie Bell related to build_icmp_raw ttl argument and nmap_getprotobyname calling nmap_protocols_init

This commit is contained in:
fyodor
2006-12-31 08:52:07 +00:00
parent 3543208670
commit 70bdc77289
3 changed files with 5 additions and 6 deletions

View File

@@ -180,11 +180,7 @@ static int nmap_protocols_init() {
struct protoent *nmap_getprotbynum(int num) {
struct protocol_list *current;
// nmap_protocols_init never returns -1 ?!
//if (nmap_protocols_init() == -1)
// return NULL;
nmap_protocols_init();
for(current = protocol_table[num % PROTOCOL_TABLE_SIZE];
current; current = current->next) {
if (num == current->protoent->p_proto)