CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2023/03/13 01:31:09
Modified files: lib/libcrypto/asn1: bio_ndef.c Log message: 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