Fix potential access of null pointer (pp)

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1186)
This commit is contained in:
Rob Percival 2016-06-07 17:01:44 +01:00 committed by Rich Salz
parent 8f09ba471c
commit a9da48157c

View File

@ -365,9 +365,9 @@ int i2o_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp)
if (pp != NULL) {
p = *pp;
s2n(len2 - 2, p);
if (!is_pp_new)
*pp += len2;
}
if (!is_pp_new)
*pp += len2;
return len2;
err: