1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Match the type in sizeof with the actual declared type

This commit is contained in:
nnposter
2025-03-23 01:53:03 +00:00
parent 7e4fdc9f8b
commit 4ab57093da

View File

@@ -253,7 +253,7 @@ NpingOps::NpingOps() {
icmp_trans_time=0;
icmp_trans_time_set=false;
memset( icmp_advert_entry_addr, 0, sizeof(u32)*MAX_ICMP_ADVERT_ENTRIES );
memset( icmp_advert_entry_addr, 0, sizeof(struct in_addr)*MAX_ICMP_ADVERT_ENTRIES );
memset( icmp_advert_entry_pref, 0, sizeof(u32)*MAX_ICMP_ADVERT_ENTRIES );
icmp_advert_entry_count=0;
icmp_advert_entry_set=false;