mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Merge remote-tracking branch 'origin/topic/robin/clone-cycles'
* origin/topic/robin/clone-cycles: GH-293: Protect copy() against reference cycles.
This commit is contained in:
commit
a388f51eaa
9 changed files with 69 additions and 16 deletions
|
@ -483,7 +483,7 @@ Val* X509Val::DoClone(CloneState* state)
|
|||
if ( certificate )
|
||||
copy->certificate = X509_dup(certificate);
|
||||
|
||||
return copy;
|
||||
return state->NewClone(this, copy);
|
||||
}
|
||||
|
||||
::X509* X509Val::GetCertificate() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue