1
0
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:
Manuel Pégourié-Gonnard
2013-07-09 10:04:07 +02:00
parent 8838099330
commit 7a6c946446
5 changed files with 19 additions and 6 deletions

View File

@ -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;