Test that xxx_free() functions accept NULL parameter

This commit is contained in:
Hanno Becker 2018-12-12 16:44:41 +00:00
parent 236ea16c01
commit a994b2379f
3 changed files with 3 additions and 0 deletions

View file

@ -139,6 +139,7 @@ void chachapoly_bad_params()
memset( mac, 0x00, sizeof( mac ) );
TEST_INVALID_PARAM( mbedtls_chachapoly_init( NULL ) );
TEST_VALID_PARAM( mbedtls_chachapoly_free( NULL ) );
/* setkey */
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA,