diff options
| author | Alex Crichton <[email protected]> | 2016-12-20 14:04:10 -0800 |
|---|---|---|
| committer | Alex Crichton <[email protected]> | 2016-12-20 15:52:18 -0800 |
| commit | 8e01f8d2502098497e642ee477d926a99ee619a8 (patch) | |
| tree | 6db689d730ca6573ace1f7b876bfcf3d34cda33b /openssl/src/stack.rs | |
| parent | Merge branch 'master' of github.com:sfackler/rust-openssl (diff) | |
| download | rust-openssl-8e01f8d2502098497e642ee477d926a99ee619a8.tar.xz rust-openssl-8e01f8d2502098497e642ee477d926a99ee619a8.zip | |
Handle zero-length reads/writes
This commit adds some short-circuits for zero-length reads/writes to
`SslStream`. Because OpenSSL returns 0 on error, then we could mistakenly
confuse a 0-length success as an actual error, so we avoid writing or reading 0
bytes by returning quickly with a success.
Diffstat (limited to 'openssl/src/stack.rs')
0 files changed, 0 insertions, 0 deletions