]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix double-free in decoder_pkey.c
authorPetr Gotthard <petr.gotthard@advantech-bb.cz>
Sun, 22 Nov 2020 16:50:53 +0000 (17:50 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 24 Nov 2020 11:10:40 +0000 (12:10 +0100)
commit223652548d295650ad2dfc7052a0b4abd94c65ae
treefd6bde4162787b5efccb45dfa35e764035c3d005
parentc150a9485772bd4b1bdf144c9fa26043a8a24d65
Fix double-free in decoder_pkey.c

Fix for the issue #13472. The decoderctx has to be initialized in every
cycle as its constructor may not be called due to lazy evaluation of
the if-condition.

CLA: trivial

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13473)
crypto/encode_decode/decoder_pkey.c