BIO_do_accept: correct error return value
authorscott <scott.morgan@hibiscus-plc.com>
Thu, 9 Apr 2020 11:36:37 +0000 (12:36 +0100)
committerTomas Mraz <tmraz@fedoraproject.org>
Tue, 14 Apr 2020 09:51:41 +0000 (11:51 +0200)
commit0437435a960123be1ced766d18d715f939698345
tree0a501f5b516a73175a48c60e95e8eee675889a68
parentb93e2ec273f8a6e7165fddaae1fe75615c0edf5a
BIO_do_accept: correct error return value

`BIO_do_accept` was returning incorrect values when unable to bind to a port.

Fixes #7717
CLA: trivial

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11505)
crypto/bio/bss_acpt.c