From e097bbdcf3f4d489adea1b0dec425b0cf9d2a84b Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Wed, 28 Feb 2024 14:17:10 +0000 Subject: [PATCH] Add missing guards around exit label Signed-off-by: David Horstmann --- library/psa_crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 16e3447fa7..e0ae088b76 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -7653,7 +7653,9 @@ psa_status_t psa_generate_random(uint8_t *output_external, status = psa_generate_random_internal(output, output_size); +#if defined(MBEDTLS_PSA_COPY_CALLER_BUFFERS) exit: +#endif LOCAL_OUTPUT_FREE(output_external, output); return status; }