[glib-networking] tlsconnection-gnutls: Create the cancellable pollfd in right buffer



commit 7ef87cfc5279059b9fe951b97c8daa3dcf49bad8
Author: Olivier Crête <olivier crete collabora com>
Date:   Fri Mar 29 18:42:45 2013 -0400

    tlsconnection-gnutls: Create the cancellable pollfd in right buffer
    
    The cancellable pollfd was overwriting the waiting_op one
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696881

 tls/gnutls/gtlsconnection-gnutls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index a97031d..e3112da 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -584,7 +584,7 @@ claim_op (GTlsConnectionGnutls    *gnutls,
        }
 
       g_cancellable_make_pollfd (gnutls->priv->waiting_for_op, &fds[0]);
-      if (g_cancellable_make_pollfd (cancellable, &fds[0]))
+      if (g_cancellable_make_pollfd (cancellable, &fds[1]))
        nfds = 2;
       else
        nfds = 1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]