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
No known key found for this signature in database
GPG key ID: 62A52691A515C300

View file

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