summaryrefslogtreecommitdiff
path: root/src/lib/libssl/pqueue.h
diff options
context:
space:
mode:
authortb <>2026-04-26 04:19:11 +0000
committertb <>2026-04-26 04:19:11 +0000
commit38105b7cb94d5e0839470521c269b2c565624ff1 (patch)
treee0e4abdd14a864650ef78f548f6d58ec768f6a3c /src/lib/libssl/pqueue.h
parentb4ec5423044982c2b2b2b182abe4cb2b99808e57 (diff)
downloadopenbsd-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