summaryrefslogtreecommitdiff
path: root/lib/gnutls_buffers.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-03-02 10:36:45 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-03-02 10:36:45 +0100
commitf01323ba1700c2c3ae80c8dc61aaeed1fc40b426 (patch)
treea3197d2f378a266ae3393db1084b2a3f715da120 /lib/gnutls_buffers.c
parente04aa306710fe3145072d13802b43d95c679ff1e (diff)
downloadgnutls-f01323ba1700c2c3ae80c8dc61aaeed1fc40b426.tar.gz
print message before failing when the pull timeout function isn't replaced.
Diffstat (limited to 'lib/gnutls_buffers.c')
-rw-r--r--lib/gnutls_buffers.c4
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);