/pidgin/main: f50c94ec0021: HTTP: content compression support (g...

Mark Doliner mark at kingant.net
Mon Aug 19 00:39:48 EDT 2013


Hey Tomasz. Regarding this change:

--- a/libpurple/plugins/ssl/ssl-gnutls.c
+++ b/libpurple/plugins/ssl/ssl-gnutls.c
@@ -471,6 +471,9 @@
  if(s == GNUTLS_E_AGAIN || s == GNUTLS_E_INTERRUPTED) {
   s = -1;
   errno = EAGAIN;
+ } else if (s == GNUTLS_E_PREMATURE_TERMINATION) {
+ purple_debug_warning("gnutls", "premature termination\n");
+ s = 0;
  } else if(s < 0) {
   purple_debug_error("gnutls", "receive failed: %s\n",
     gnutls_strerror(s));

I believe GNUTLS_E_PREMATURE_TERMINATION is only defined in newer
versions of GnuTLS. I have 2.12.23 on Ubuntu 13.04 and it is not
defined for me.

This random diff: https://bugzilla.gnome.org/show_bug.cgi?id=694812
wraps it in #ifdef GNUTLS_E_PREMATURE_TERMINATION. Maybe we could do that?



More information about the Devel mailing list