diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-06-04 21:21:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-06-04 21:21:04 +0000 |
commit | 86e453331071fd1abcdba058563069a238e5b7a0 (patch) | |
tree | fc3f23851d288f93a513b4c666a3cb23b1abf3d2 /etc | |
parent | c15c535f54fede6adea2b4b6e2784c3a99bd0665 (diff) |
When X509_ATTRIBUTE_create() receives an invalid NID (e.g., -1), return
failure rather than silently constructing a broken X509_ATTRIBUTE object
that might cause NULL pointer accesses later on. This matters because
X509_ATTRIBUTE_create() is used by documented API functions like
PKCS7_add_attribute(3) and the NID comes straight from the user.
This fixes a bug found while working on documentation.
OK tb@ and "thanks" bluhm@
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions