mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 14:39:03 +00:00
Fixed the race condition where nping would print out an error after running. I removed the call to create a time since we don't really need a timer there.
This commit is contained in:
@@ -472,7 +472,6 @@ int ProbeMode::start(){
|
||||
o.stats.stopTxClock();
|
||||
if(!o.disablePacketCapture()){
|
||||
nsock_pcap_read_packet(nsp, pcap_nsi, nping_event_handler, DEFAULT_WAIT_AFTER_PROBES, NULL);
|
||||
nsock_timer_create(nsp, nping_event_handler, DEFAULT_WAIT_AFTER_PROBES,NULL);
|
||||
loopret=nsock_loop(nsp, DEFAULT_WAIT_AFTER_PROBES);
|
||||
if (loopret == NSOCK_LOOP_ERROR)
|
||||
outFatal(QT_3, "Unexpected nsock_loop error.\n");
|
||||
|
||||
Reference in New Issue
Block a user