mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-03 23:43:40 +00:00
Move zeroize func call to end of program in zeroize.c
This commit is contained in:
parent
0bd4237c2a
commit
88f8f41e5a
@ -79,13 +79,13 @@ int main( int argc, char** argv )
|
|||||||
if( p - buf != 0 )
|
if( p - buf != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_printf( "%s\n", buf );
|
mbedtls_printf( "%s\n", buf );
|
||||||
mbedtls_zeroize( buf, sizeof( buf ) );
|
|
||||||
exit_code = MBEDTLS_EXIT_SUCCESS;
|
exit_code = MBEDTLS_EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
mbedtls_printf( "The file is empty!\n" );
|
mbedtls_printf( "The file is empty!\n" );
|
||||||
|
|
||||||
fclose( fp );
|
fclose( fp );
|
||||||
|
mbedtls_zeroize( buf, sizeof( buf ) );
|
||||||
|
|
||||||
return( exit_code );
|
return( exit_code );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user