changeset 19002:daeca1b9ebdb

- Fix an incorrect assertion in GnuTLS plugin
author William Ehlhardt <williamehlhardt@gmail.com>
date Sun, 08 Jul 2007 02:32:25 +0000
parents b207701cb5a3
children 0b1a75eb5627
files libpurple/plugins/ssl/ssl-gnutls.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/ssl/ssl-gnutls.c	Sun Jul 08 02:25:17 2007 +0000
+++ b/libpurple/plugins/ssl/ssl-gnutls.c	Sun Jul 08 02:32:25 2007 +0000
@@ -513,7 +513,7 @@
 				     NULL, /* Provide no buffer yet */
 				     &out_size /* Put size here */
 		);
-	g_return_val_if_fail(ret == 0, FALSE);
+	g_return_val_if_fail(ret == GNUTLS_E_SHORT_MEMORY_BUFFER, FALSE);
 
 	/* Now allocate a buffer and *really* export it */
 	out_buf = g_new0(gchar, out_size);