Set salt length after the malloc has succeeded
authorAlessandro Ghedini <alessandro@ghedini.me>
Thu, 8 Oct 2015 12:39:58 +0000 (14:39 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 23 Oct 2015 17:59:34 +0000 (19:59 +0200)
commit72895f5112452ff63d16a02e50a8282a419ccaf7
treeef065287efc49ee228dc41bd1b91a607b4da94fe
parente90f1d9b74275c11e3492e521e46f4b1afa6f883
Set salt length after the malloc has succeeded

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit c2319cf9fce87a2e82efb6e58ced11a85190dc3d)
crypto/pkcs12/p12_mutl.c