1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Fix wrong conditional in free() functions

This commit is contained in:
Hanno Becker
2018-12-12 14:00:34 +00:00
parent e463c42902
commit 236ea16c01
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ void mbedtls_poly1305_init( mbedtls_poly1305_context *ctx )
void mbedtls_poly1305_free( mbedtls_poly1305_context *ctx )
{
if( ctx != NULL )
if( ctx == NULL )
return;
mbedtls_platform_zeroize( ctx, sizeof( mbedtls_poly1305_context ) );