mirror of
https://github.com/open62541/open62541.git
synced 2026-10-29 13:20:10 +08:00
Fix segfault in ua_pki_openssl.c
If the value is not set to NULL, a heap-use-after-free occurs in UA_CertificateVerification_clear().
This commit is contained in:
committed by
Julius Pfrommer
parent
ee45f6f570
commit
34d2040de9
@@ -78,6 +78,8 @@ UA_CertificateVerification_clear (UA_CertificateVerification * cv) {
|
||||
UA_CertContext_sk_free (context);
|
||||
UA_free (context);
|
||||
|
||||
cv->context = NULL;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user