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:20:27 +0000 (14:20 +0100)
commit90893527fc72189b17f1319aa735ecd5762aa7ca
treebbfc55925d605baf055be77d47d59230aa276b4c
parent236119c48ecaac933fc52d7cbfd8d9214d216122
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)

(cherry picked from commit d97ce8d9a0619c1d9d1222dc1b44dbebb58dd966)
crypto/bio/bio_lib.c