diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2019-04-22 17:10:02 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2019-04-22 17:10:02 +0000 |
commit | 8a57783c0bca22b0d5ff4940428037cfd85e1be3 (patch) | |
tree | 9d7248adadb08dd9bc255e279215580c0090bdcc /etc/etc.sparc64 | |
parent | 760499570cd8d691c7b3141add44c1aa044c84dc (diff) |
Avoid potential double frees in i2v_AUTHORITY_KEYID(), i2v_GENERAL_NAME()
and i2v_GENERAL_NAMES() by taking ownership of the extlist only if we
were passed NULL. Otherwise it remains the caller's responsibility to
free it. To do so, we allocate the extlist explicitly instead of using
X509V3_add_value()'s implicit allocation feature. Preserve behavior in
i2v_AUTHORITY_KEYID() by adding an explicit check that something was
pushed onto the stack.
The other i2v_* functions will receive a similar treatment in upcoming
commits.
ok jsing
Diffstat (limited to 'etc/etc.sparc64')
0 files changed, 0 insertions, 0 deletions