diff --git a/scan_engine.cc b/scan_engine.cc index 6dea10339..7cc80119b 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -2583,6 +2583,10 @@ static bool icmp_probe_match(const UltraScanInfo *USI, const UltraProbe *probe, probe->ipid() == ipid) return false; /* We saw the packet we ourselves sent */ + /* Check that the randomly-generated ping ident matches. */ + if (ntohs(ping->id) != probe->icmpid()) + return false; + return true; }