From: Beat Bolli Date: Wed, 18 Jan 2017 22:49:43 +0000 (+0100) Subject: doc/man3: remove a duplicate BIO_do_accept() call X-Git-Tag: OpenSSL_1_1_1-pre1~1369 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a67a3ba04c21e7f5befd4bd1c7649b5373953b3;p=oweals%2Fopenssl.git doc/man3: remove a duplicate BIO_do_accept() call The SSL server example in BIO_f_ssl.pod contains two copies of the BIO_do_accept() call. Remove the second one. Signed-off-by: Beat Bolli Reviewed-by: Rich Salz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/1956) --- diff --git a/doc/man3/BIO_f_ssl.pod b/doc/man3/BIO_f_ssl.pod index 2bc9afea6f..1da14897f0 100644 --- a/doc/man3/BIO_f_ssl.pod +++ b/doc/man3/BIO_f_ssl.pod @@ -241,12 +241,6 @@ a client and also echoes the request to standard output. exit(1); } - if (BIO_do_accept(acpt) <= 0) { - fprintf(stderr, "Error in connection\n"); - ERR_print_errors_fp(stderr); - exit(1); - } - /* We only want one connection so remove and free accept BIO */ sbio = BIO_pop(acpt); BIO_free_all(acpt);