diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-03-02 10:36:45 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-03-02 10:36:45 +0100 |
commit | f01323ba1700c2c3ae80c8dc61aaeed1fc40b426 (patch) | |
tree | a3197d2f378a266ae3393db1084b2a3f715da120 /lib | |
parent | e04aa306710fe3145072d13802b43d95c679ff1e (diff) | |
download | gnutls-f01323ba1700c2c3ae80c8dc61aaeed1fc40b426.tar.gz |
print message before failing when the pull timeout function isn't replaced.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_buffers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c index ec38b1b4bc..a46a1175ca 100644 --- a/lib/gnutls_buffers.c +++ b/lib/gnutls_buffers.c @@ -671,8 +671,10 @@ int _gnutls_io_check_recv(gnutls_session_t session, unsigned int ms) if (unlikely (session->internals.pull_timeout_func == system_recv_timeout - && session->internals.pull_func != system_read)) + && session->internals.pull_func != system_read)) { + _gnutls_debug_log("The pull function has been replaced but not the pull timeout."); return gnutls_assert_val(GNUTLS_E_PULL_ERROR); + } reset_errno(session); |