]> granicus.if.org Git - apache/commit
ssl: clear the error queue before SSL_read/write/accept()
authorJacob Champion <jchampion@apache.org>
Fri, 11 Nov 2016 19:38:28 +0000 (19:38 +0000)
committerJacob Champion <jchampion@apache.org>
Fri, 11 Nov 2016 19:38:28 +0000 (19:38 +0000)
commit2d74fe1ab1b0aa7619b27ea83c17922cd5ffd9d3
tree56d89c9cbc61d4706820bf1e3a253cf6be382620
parent28d609064969659b70399ece1411a9d811e225df
ssl: clear the error queue before SSL_read/write/accept()

If other modules or libraries do not clear the OpenSSL error queue after
a failed operation, other code that relies on SSL_get_error() -- in
particular, code that deals with SSL_ERROR_WANT_READ/WRITE logic -- will
malfunction later on. To prevent this, explicitly clear the error queue
before calls like SSL_read/write/accept().

PR: 60223
Submitted by: Paul Spangler <paul.spangler ni.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1769332 13f79535-47bb-0310-9956-ffa450edef68
modules/ssl/ssl_engine_io.c