From 50f58fc3e476d50233d1288548920938558da965 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Thu, 15 Feb 2024 14:24:03 +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 e64d172593..b78e8696bb 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -7363,7 +7363,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 {