From 9a15f1e55522c71c13a276b47b774c9c56f6299f Mon Sep 17 00:00:00 2001 From: headscott <52857937+headscott@users.noreply.github.com> Date: Tue, 10 Nov 2026 10:14:43 +0100 Subject: [PATCH] Fix incorrect error path in ecc_sign_hash_internal.c --- src/pk/ecc/ecc_sign_hash_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pk/ecc/ecc_sign_hash_internal.c b/src/pk/ecc/ecc_sign_hash_internal.c index bde463020..a2d00457c 100644 --- a/src/pk/ecc/ecc_sign_hash_internal.c +++ b/src/pk/ecc/ecc_sign_hash_internal.c @@ -44,7 +44,7 @@ int ecc_sign_hash_internal(const unsigned char *in, unsigned long inlen, else { if (pbytes >= MAXBLOCKSIZE) { err = CRYPT_BUFFER_OVERFLOW; - goto error; + goto errnokey; } shift_right = 8 - pbits % 8; for (i=0, ch=0; i