Commit 389fb92
committed
openssl: Add error checks for CMS_get1_certs() and CMS_get1_crls()
These allocate new stacks and add the certificates to those as clones.
So these aren't trivial refcount increases and might fail.
Unfortunately, an empty stack also results in a NULL return, so to
distinguish an empty stack from a failure we check the error stack.1 parent 6e87107 commit 389fb92
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6677 | 6677 | | |
6678 | 6678 | | |
6679 | 6679 | | |
| 6680 | + | |
| 6681 | + | |
| 6682 | + | |
| 6683 | + | |
6680 | 6684 | | |
6681 | 6685 | | |
6682 | 6686 | | |
| |||
0 commit comments