From: Dmitry Baryshkov Date: Fri, 27 Mar 2020 23:31:10 +0000 (+0300) Subject: padlock: fix exception in wrap_padlock_hash_fast X-Git-Tag: 3.6.13~4^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55a3cb0fa4b46c52b610125e080fae306dbf355d;p=thirdparty%2Fgnutls.git padlock: fix exception in wrap_padlock_hash_fast wrap_padlock_hash_fast() allocates a context on a stack (via local variable) then tries to free it by calling wrap_padlock_hash_deinit() causing a crash. Remove a call to deinit() to fix a crash. Fixes #930 Signed-off-by: Dmitry Baryshkov --- diff --git a/lib/accelerated/x86/sha-padlock.c b/lib/accelerated/x86/sha-padlock.c index bfb67f62e9..1030d4f63e 100644 --- a/lib/accelerated/x86/sha-padlock.c +++ b/lib/accelerated/x86/sha-padlock.c @@ -364,7 +364,6 @@ int wrap_padlock_hash_fast(gnutls_digest_algorithm_t algo, wrap_padlock_hash_update(&ctx, text, text_size); wrap_padlock_hash_output(&ctx, digest, ctx.length); - wrap_padlock_hash_deinit(&ctx); } return 0;