mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Fix error code in pk.h
This commit is contained in:
@ -84,7 +84,7 @@ int pk_set_type( pk_context *ctx, pk_type_t type )
|
||||
return( 0 );
|
||||
|
||||
if( ( ctx->data = malloc( size ) ) == NULL )
|
||||
return( -1 );
|
||||
return( POLARSSL_ERR_PK_MALLOC_FAILED );
|
||||
|
||||
memset( ctx->data, 0, size );
|
||||
ctx->type = type;
|
||||
|
Reference in New Issue
Block a user