diff options
author | tb <> | 2021-04-07 21:48:23 +0000 |
---|---|---|
committer | tb <> | 2021-04-07 21:48:23 +0000 |
commit | dce38e74ea35338f295612fb140758e949815c70 (patch) | |
tree | c54ab4f1f2b97ea5c7726b3ea1fdd28bf1be6ac5 /src/lib/libc/stdlib/malloc.c | |
parent | 0d1e2b135fbfd4ff62641488b38009f89f79c883 (diff) | |
download | openbsd-dce38e74ea35338f295612fb140758e949815c70.tar.gz openbsd-dce38e74ea35338f295612fb140758e949815c70.tar.bz2 openbsd-dce38e74ea35338f295612fb140758e949815c70.zip |
Avoid clobbering the error code when sending an alert
In order to fail gracefully on encountering a self-signed cert, curl looks
at the top-most error on the stack and needs specific SSL_R_ error codes.
This mechanism was broken when the tls13_alert_sent_cb() was added after
people complained about unhelpful unknown errors. Fix this by only setting
the error code from a fatal alert if no error has been set previously.
Issue reported by Christopher Reid
ok jsing
Diffstat (limited to 'src/lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions