tlsconnection-gnutls: Create the cancellable pollfd in right buffer
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 29 Mar 2013 22:42:45 +0000 (18:42 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Tue, 2 Apr 2013 20:26:13 +0000 (16:26 -0400)
The cancellable pollfd was overwriting the waiting_op one

https://bugzilla.gnome.org/show_bug.cgi?id=696881

tls/gnutls/gtlsconnection-gnutls.c

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