mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Ensure nsock pool is not deleted twice
This commit is contained in:
parent
7baee8efa9
commit
df9391e57a
1 changed files with 4 additions and 1 deletions
|
|
@ -120,7 +120,10 @@ int ProbeMode::init_nsock(){
|
|||
/** Cleans up the internal nsock pool and any other internal data that
|
||||
* needs to be taken care of before destroying the object. */
|
||||
int ProbeMode::cleanup(){
|
||||
nsock_pool_delete(this->nsp);
|
||||
if (this->nsock_init) {
|
||||
nsock_pool_delete(this->nsp);
|
||||
this->nsp = NULL;
|
||||
}
|
||||
return OP_SUCCESS;
|
||||
} /* End of cleanup() */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue