1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2026-01-06 11:41:12 +03:00

Assign error return value for failed write

This commit is contained in:
Kevin Luty
2018-03-22 09:56:26 -05:00
parent 1e7059fedd
commit d9d5c55438

View File

@@ -140,6 +140,7 @@ int main( int argc, char *argv[] )
if( fwrite( buf, 1, olen, f ) != olen )
{
ret = 1;
mbedtls_printf( "failed\n ! fwrite failed\n\n" );
fclose( f );
goto exit;