projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix potential access of null pointer (pp)
[openssl.git]
/
crypto
/
ct
/
ct_oct.c
diff --git
a/crypto/ct/ct_oct.c
b/crypto/ct/ct_oct.c
index ced585f6ba439b6cc5dc1d95c3cffba2c0f8a593..cacc3bd2b4fda583276c406cf125b921f465401c 100644
(file)
--- a/
crypto/ct/ct_oct.c
+++ b/
crypto/ct/ct_oct.c
@@
-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: