From: Tim Rühsen Date: Tue, 12 Feb 2019 14:20:23 +0000 (+0100) Subject: gnutls_x509_crt_init: Fix dereference of NULL pointer X-Git-Tag: gnutls_3_6_7~35^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b5cbc9ea5bdca704bdbe2f8fb551f720d634bc6;p=thirdparty%2Fgnutls.git gnutls_x509_crt_init: Fix dereference of NULL pointer Signed-off-by: Tim Rühsen --- 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; }