1
0
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:
sean
2012-08-05 18:23:10 +00:00
parent 381865f342
commit 5d541b08ca

View File

@@ -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");