mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
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:
parent
8f09ba471c
commit
a9da48157c
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user