]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
When checking for data to be received use the 'transport_recv_ptr'
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 18 Apr 2014 08:40:49 +0000 (10:40 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 18 Apr 2014 08:40:52 +0000 (10:40 +0200)
This affects cases where there is different send and recv pointers.
Reported and investigated by JMRecio.

lib/gnutls_buffers.c

index f318b59a77883875ba4637f3ac20668277137082..29c67eac567da4908154168afb0999b92a7ada71 100644 (file)
@@ -666,7 +666,7 @@ ssize_t _gnutls_io_write_flush(gnutls_session_t session)
  */
 int _gnutls_io_check_recv(gnutls_session_t session, unsigned int ms)
 {
-       gnutls_transport_ptr_t fd = session->internals.transport_send_ptr;
+       gnutls_transport_ptr_t fd = session->internals.transport_recv_ptr;
        int ret = 0, err;
 
        if (unlikely