summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bio_lib.c
diff options
context:
space:
mode:
authortb <>2023-03-13 07:31:09 +0000
committertb <>2023-03-13 07:31:09 +0000
commitfc7471682dc0a11ebac8c980c6afce3ab21dc45f (patch)
treef95ecf2981293dd65813815d89c743d68930c244 /src/lib/libcrypto/bio/bio_lib.c
parent2bc94b417c66333b4acae96b46d4aff34b3813cd (diff)
downloadopenbsd-fc7471682dc0a11ebac8c980c6afce3ab21dc45f.tar.gz
openbsd-fc7471682dc0a11ebac8c980c6afce3ab21dc45f.tar.bz2
openbsd-fc7471682dc0a11ebac8c980c6afce3ab21dc45f.zip
Stop confusing out and asn_bio in BIO_new_NDEF()
BIO_new_NDEF() sets up an ASN.1 BIO to the output chain and then adds even more BIOs. Since BIO_push(bio, new_tail) returns bio on success, after the if ((out = BIO_push(asn_bio, out)) != NULL) the 'out' BIO and the 'asn_bio' are the same. The code then goes on and uses one or the other. This is very confusing. Simply stop using out once it's appended to asn_bio. ok jsing
Diffstat (limited to 'src/lib/libcrypto/bio/bio_lib.c')
0 files changed, 0 insertions, 0 deletions