doc/man3: remove a duplicate BIO_do_accept() call
authorBeat Bolli <dev@drbeat.li>
Wed, 18 Jan 2017 22:49:43 +0000 (23:49 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 8 Jun 2017 10:54:16 +0000 (11:54 +0100)
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 <dev@drbeat.li>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1956)

doc/man3/BIO_f_ssl.pod

index 2bc9afea6f2a5b262ce969b1859b52c8ba106a15..1da14897f038d62dca11236af062fa30b4069521 100644 (file)
@@ -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);