mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fixed to the features check
This commit is contained in:
@ -41,7 +41,9 @@
|
||||
#endif
|
||||
|
||||
const char *features[] = {
|
||||
#if defined(POLARSSL_VERSION_FEATURES)
|
||||
FEATURE_DEFINES
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
@ -49,6 +51,9 @@ int version_check_feature( const char *feature )
|
||||
{
|
||||
const char **idx = features;
|
||||
|
||||
if( *idx == NULL )
|
||||
return( -2 );
|
||||
|
||||
if( feature == NULL )
|
||||
return( -1 );
|
||||
|
||||
|
Reference in New Issue
Block a user