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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user