From 020c823f62204588584ee00dd63c0b61cf9051ab Mon Sep 17 00:00:00 2001 From: tdoe Date: Fri, 18 May 2018 13:09:12 +0200 Subject: [PATCH] fixed segmentation fault --- library/x509_create.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/x509_create.c b/library/x509_create.c index 863009651..ab5f85b93 100644 --- a/library/x509_create.c +++ b/library/x509_create.c @@ -85,6 +85,9 @@ static const x509_attr_descriptor_t *x509_at_oid_from_name( const char *name, si strncmp( cur->name, name, name_len ) == 0 ) break; + if ( cur->name == NULL ) + return( NULL ); + return( cur ); }