]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
print message before failing when the pull timeout function isn't replaced.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 2 Mar 2014 09:36:45 +0000 (10:36 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 2 Mar 2014 09:36:45 +0000 (10:36 +0100)
lib/gnutls_buffers.c

index ec38b1b4bc69cfc27bcf296baa6389e41688ef31..a46a1175ca789acbf8fbaf4214325ea929efb423 100644 (file)
@@ -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);