commit | 236ea16c011d356266b32ef7ae817c0f2573563e | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Wed Dec 12 14:00:34 2018 +0000 |
committer | Hanno Becker <hanno.becker@arm.com> | Tue Dec 18 15:30:30 2018 +0000 |
tree | c20e16a27894d351a5745a96d4f8bda48497cfa4 | |
parent | e463c42902208531506b414cbf533a7cb2f3a9e8 [diff] [blame] |
Fix wrong conditional in free() functions
diff --git a/library/poly1305.c b/library/poly1305.c index c22a0a1..b274119 100644 --- a/library/poly1305.c +++ b/library/poly1305.c
@@ -289,7 +289,7 @@ void mbedtls_poly1305_free( mbedtls_poly1305_context *ctx ) { - if( ctx != NULL ) + if( ctx == NULL ) return; mbedtls_platform_zeroize( ctx, sizeof( mbedtls_poly1305_context ) );