diff options
| author | tb <> | 2026-04-26 04:19:11 +0000 |
|---|---|---|
| committer | tb <> | 2026-04-26 04:19:11 +0000 |
| commit | 38105b7cb94d5e0839470521c269b2c565624ff1 (patch) | |
| tree | e0e4abdd14a864650ef78f548f6d58ec768f6a3c /src/lib/libssl/pqueue.h | |
| parent | b4ec5423044982c2b2b2b182abe4cb2b99808e57 (diff) | |
| download | openbsd-38105b7cb94d5e0839470521c269b2c565624ff1.tar.gz openbsd-38105b7cb94d5e0839470521c269b2c565624ff1.tar.bz2 openbsd-38105b7cb94d5e0839470521c269b2c565624ff1.zip | |
Fix PKCS7_set_{un,}signed_attributes()
In both these functions, if the X509_ATTRIBUTE_dup() fails, the
remainder of the sk stack is shared with p7si->{un,}auth_attr and
the caller will likely end up freeing it twice.
Fix this by writing another sk_deep_copy() patterned after the existing
ones in x509_lu.c and x509_vpm.c. PKCS7_set_{un,}signed_attributes()
become trivial wrappers of that.
ok jsing kenjiro
Diffstat (limited to 'src/lib/libssl/pqueue.h')
0 files changed, 0 insertions, 0 deletions
