Commit 6cec5174 authored by Simon Morlat's avatar Simon Morlat

Fix mistake in my previous commit. The usage I made of tls_events() was not...

Fix mistake in my previous commit. The usage I made of tls_events() was not correct, which resulted in code that could never be executed.
parent 0875d4cf
......@@ -11,7 +11,7 @@ dnl information on the package
dnl ---------------------------
dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
AC_INIT([sofia-sip], [1.13.33bc])
AC_INIT([sofia-sip], [1.13.34bc])
AC_CONFIG_SRCDIR([libsofia-sip-ua/sip/sofia-sip/sip.h])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST(VER_LIBSOFIA_SIP_UA_MAJOR_MINOR, [1.13])
......
......@@ -840,7 +840,7 @@ static int tport_tls_ping(tport_t *self, su_time_t now)
if (tport_has_queued(self))
return 0;
if ((tls_events(tlstp->tlstp_context, 0) & SU_WAIT_OUT) != 0){
if (tls_events(tlstp->tlstp_context, SU_WAIT_OUT) != 0){
/* We had an EWOULDBLOCK on write which is pending poll() to notify when it's ready to write again.
* In this situation there is no need and this is dangerous to write a keepalive. */
return 0;
......
Markdown is supported
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