]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-10395: [mod_sofia] Fix ssl error handling in tls sip traffic
authortrevora <trevora@edge-net.net>
Tue, 2 Aug 2016 13:11:02 +0000 (13:11 +0000)
committerMike Jerris <mike@jerris.com>
Thu, 6 Jul 2017 21:44:26 +0000 (17:44 -0400)
commit74f5b5675e980d6fe0a5f75370acfc2bf7c3f175
treeaef8e4b4f34a0e35d81f20bff8d3d38cac2ba2a3
parent719937ff8f741d4a6255db127e09d16df46cdde6
FS-10395: [mod_sofia] Fix ssl error handling in tls sip traffic

Clears SSL error state.

Updates tport_tls.c to clear the SSL error state after an error occurs.

OpenSSL puts errors into a queue that is kept in thread local storage.
In some cases, such as when SSL_ERROR_SSL is returned by SSL_get_errror(),
OpenSSL will queue multiple errors for a single event. When this occurs,
OpenSSL will report an error the next time I/O is performed if the queue
is not cleared first, which can result in TLS connections being torn down
prematurely.
libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c