Assign error return value for failed write
This commit is contained in:
parent
1e7059fedd
commit
d9d5c55438
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ int main( int argc, char *argv[] )
|
||||||
|
|
||||||
if( fwrite( buf, 1, olen, f ) != olen )
|
if( fwrite( buf, 1, olen, f ) != olen )
|
||||||
{
|
{
|
||||||
|
ret = 1;
|
||||||
mbedtls_printf( "failed\n ! fwrite failed\n\n" );
|
mbedtls_printf( "failed\n ! fwrite failed\n\n" );
|
||||||
fclose( f );
|
fclose( f );
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
Loading…
Reference in a new issue