mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
67ab4c0208
commit
31d2c497fa
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue