1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 13:19:01 +00:00

Fixed a bug with in validate_scan_lists where realloc was not called with

sufficient size.
This commit is contained in:
josh
2009-06-06 02:18:18 +00:00
parent 1eb18b3143
commit 8e9c6a0e1f

View File

@@ -507,7 +507,8 @@ void validate_scan_lists(scan_lists &ports, NmapOps &o){
// if there were duplicate ports then we can save some memory
if (merged_port_count < (ports.ack_ping_count + ports.syn_ping_count)) {
merged_port_list = (unsigned short*)
safe_realloc(merged_port_list, merged_port_count);
safe_realloc(merged_port_list,
merged_port_count * sizeof(unsigned short));
}
// clean up a bit