summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2019-02-12 15:20:23 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2019-02-22 13:11:02 +0100
commit6b5cbc9ea5bdca704bdbe2f8fb551f720d634bc6 (patch)
treea35275148435143c9a52e9112de85146539dd722
parent372821c883a3d36ed3ed683844ad9d90818f6392 (diff)
downloadgnutls-tmp-reset-after-free.tar.gz
gnutls_x509_crt_init: Fix dereference of NULL pointertmp-reset-after-free
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
-rw-r--r--lib/x509/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c
index fa0188ef05..995d5cd5cf 100644
--- a/lib/x509/x509.c
+++ b/lib/x509/x509.c
@@ -227,8 +227,8 @@ int gnutls_x509_crt_init(gnutls_x509_crt_t * cert)
if (result < 0) {
gnutls_assert();
asn1_delete_structure(&tmp->cert);
- gnutls_free(tmp);
gnutls_subject_alt_names_deinit(tmp->san);
+ gnutls_free(tmp);
return result;
}