Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x509_vfy: remove redundant stack allocation
Fix CID 1472833 by removing a codepath that attempts to allocate a stack if not already allocated, when the stack was already allocated unconditionally a few lines previously. Interestingly enough, this additional allocation path (and the comment describing the need for it) were added in commit 69664d6, also prompted by Coverity(!). It seems that the intervening (and much more recent) commit d53b437 that allowed sk_X509_dup() to accept a NULL argument allowed the earlier initialization path to unconditionally allocate a stack, rendering this later allocation fully redundant.
- Loading branch information