mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 06:29:03 +00:00
Give Probe a virtual destructor because it is deleted through pointers
that point to instances of subclasses (TCPProbe etc.).
This commit is contained in:
@@ -280,6 +280,7 @@ public:
|
||||
struct timeval sent_time;
|
||||
|
||||
Probe(HostState *host, struct probespec pspec, u8 ttl);
|
||||
virtual ~Probe();
|
||||
void send(int rawsd, eth_t *ethsd, struct timeval *now = NULL);
|
||||
void resend(int rawsd, eth_t *ethsd, struct timeval *now = NULL);
|
||||
bool is_timedout(struct timeval *now = NULL) const;
|
||||
@@ -577,6 +578,9 @@ Probe::Probe(HostState *host, struct probespec pspec, u8 ttl) {
|
||||
num_resends = 0;
|
||||
}
|
||||
|
||||
Probe::~Probe() {
|
||||
}
|
||||
|
||||
void Probe::send(int rawsd, eth_t *ethsd, struct timeval *now) {
|
||||
struct eth_nfo eth;
|
||||
struct eth_nfo *ethp;
|
||||
|
||||
Reference in New Issue
Block a user