Fix the BIO callback return code handling
authorMatt Caswell <matt@openssl.org>
Wed, 3 Oct 2018 14:27:31 +0000 (15:27 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 4 Oct 2018 13:16:16 +0000 (14:16 +0100)
commitd97ce8d9a0619c1d9d1222dc1b44dbebb58dd966
tree176219fbf888f4bd6fac8d4b0fd99d1f7573fb92
parent30699aa1943b10b265c52334d9f582c04c4eccba
Fix the BIO callback return code handling

The BIO callback handling incorrectly wrote over the return code passed
to the callback, meaning that an incorrect result was (eventually) returned
to the caller.

Fixes #7343

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7344)
crypto/bio/bio_lib.c