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:
Jannis Voelker
2020-08-13 15:14:38 +02:00
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;
}