]> git.ipfire.org Git - thirdparty/hostap.git/commit
OpenSSL: Remove extra BIO_write() call on TLS client
authorJouni Malinen <j@w1.fi>
Mon, 27 Jul 2015 21:54:08 +0000 (00:54 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 28 Jul 2015 15:56:45 +0000 (18:56 +0300)
commite9690eb74e4e0b549bbe1c6207c0d524d1346970
tree36427175a9d3fd0d93e89dcb58b40cd177bb10f3
parentd8aa603d53f96d19c844cc2b07d7a5a23665cd6b
OpenSSL: Remove extra BIO_write() call on TLS client

openssl_handshake() was checking only that in_data is not NULL and not
its length when determining whether to call BIO_write(). Extend that to
check the buffer length as well. In practice, this removes an
unnecessary BIO_write() call at the beginning of a TLS handshake on the
client side. This did not cause issues with OpenSSL versions up to
1.0.2, but that call seems to fail with the current OpenSSL 1.1.0
degvelopment snapshot. There is no need for that zero-length BIO_write()
call, so remove it.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/tls_openssl.c