Commit 2bd8c853 authored by Richard Levitte's avatar Richard Levitte
Browse files

Make BIO_sock_error return a proper error code when getsockopt fails



BIO_sock_error() returned 1 when getsockopt() fails when it should
return the error code for that failure.

Additionally, the optlen parameter to getsockopt() has to point at
the size of the area that the optval parameter points at rather than
zero.  Some systems may forgive it being zero, but others don't.

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
parent d78df5df
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment