From 3c0c6b1c4beaa75256eb7823d853ae30019035de Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Thu, 15 Feb 2024 14:25:08 +0000 Subject: [PATCH] Conditionally include exit label Signed-off-by: Thomas Daubney --- library/psa_crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index d1973a59a..319ad8312 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -5265,7 +5265,9 @@ psa_status_t psa_key_derivation_key_agreement(psa_key_derivation_operation_t *op slot, peer_key, peer_key_length); +#if defined(MBEDTLS_PSA_COPY_CALLER_BUFFERS) exit: +#endif if (status != PSA_SUCCESS) { psa_key_derivation_abort(operation); } else {