Pass a temporary pointer to o2i_SCT_signature from SCT_new_from_base64
authorRob Percival <robpercival@google.com>
Wed, 19 Oct 2016 14:38:20 +0000 (15:38 +0100)
committerRich Salz <rsalz@openssl.org>
Wed, 16 Nov 2016 21:27:34 +0000 (16:27 -0500)
commit4caa44d7ea001708069d8ce638e11e7dfd975f85
tree87561bfea3a392d3f2357af1a521d1e75d26ff5d
parentbb2b6b6cb7e697a69a1e5cd371a96721a7b89633
Pass a temporary pointer to o2i_SCT_signature from SCT_new_from_base64

Otherwise, |dec| gets moved past the end of the signature by
o2i_SCT_signature and then can't be correctly freed afterwards.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1548)
(cherry picked from commit 73ccf3ca01085d143aecb7fcfb0aac18caa678d2)
crypto/ct/ct_b64.c