mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
fixed segmentation fault
This commit is contained in:
@ -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 )
|
strncmp( cur->name, name, name_len ) == 0 )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if ( cur->name == NULL )
|
||||||
|
return( NULL );
|
||||||
|
|
||||||
return( cur );
|
return( cur );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user