summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_err.c
diff options
context:
space:
mode:
authortb <>2023-03-04 11:58:29 +0000
committertb <>2023-03-04 11:58:29 +0000
commitbc26a6ac11ec06332cd7a22391847fa7e02042eb (patch)
tree7a557b2419c7fd6db0d9f7ae3a87a56dbb91e2bc /src/lib/libcrypto/dsa/dsa_err.c
parent4a3fed04f5f73d8364ee7afcae6fe40132f47c20 (diff)
downloadopenbsd-bc26a6ac11ec06332cd7a22391847fa7e02042eb.tar.gz
openbsd-bc26a6ac11ec06332cd7a22391847fa7e02042eb.tar.bz2
openbsd-bc26a6ac11ec06332cd7a22391847fa7e02042eb.zip
Avoid infinite loop in bio_asn1 state machine
If the BIO_write() in the ASN1_STATE_DATA_COPY state fails, incorrect error handling will break out of the switch without changing the state, and the infinite for loop will immediately try the same write again, which is unlikely to succeed... Clearly this code intended to break out of the loop instead. Via OpenSSL 1.1 commit 723f616df81ea05f31407f7417f49eea89bb459a ok millert
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_err.c')
0 files changed, 0 insertions, 0 deletions