Fix for returning correct error code

This commit is contained in:
Kevin Luty 2017-10-13 13:18:28 -05:00
parent 77f1b109ec
commit da44de60b1
No known key found for this signature in database
GPG Key ID: F3D2BA37E2381536

View File

@ -100,7 +100,6 @@ int main( int argc, char *argv[] )
if( ( ret = mbedtls_pk_parse_keyfile( &pk, argv[1], "" ) ) != 0 )
{
ret = 1;
mbedtls_printf( " failed\n ! Could not open '%s'\n", argv[1] );
goto exit;
}
@ -134,7 +133,6 @@ int main( int argc, char *argv[] )
if( ( f = fopen( filename, "wb+" ) ) == NULL )
{
ret = 1;
mbedtls_printf( " failed\n ! Could not create %s\n\n", filename );
goto exit;
}