2005-05-13 Mikael Hallendal <micke@imendio.com>
authorhallski <hallski>
Fri, 13 May 2005 19:27:54 +0000
changeset 120 9a8a42f15db1
parent 119 52273c5d05b6
child 121 612603ba6d90
2005-05-13 Mikael Hallendal <micke@imendio.com> * loudmouth/lm-ssl.c: (_lm_ssl_read): - Try to fix LM-3 for real this time.
ChangeLog
loudmouth/lm-ssl.c
--- a/ChangeLog	Sun May 08 21:34:56 2005 +0000
+++ b/ChangeLog	Fri May 13 19:27:54 2005 +0000
@@ -1,3 +1,8 @@
+2005-05-13  Mikael Hallendal  <micke@imendio.com>
+
+	* loudmouth/lm-ssl.c: (_lm_ssl_read):
+	- Try to fix LM-3 for real this time.
+
 2005-05-08  Mikael Hallendal  <micke@imendio.com>
 
 	* Release 0.90
--- a/loudmouth/lm-ssl.c	Sun May 08 21:34:56 2005 +0000
+++ b/loudmouth/lm-ssl.c	Fri May 13 19:27:54 2005 +0000
@@ -209,13 +209,13 @@
 
 	//g_print ("%d bytes read\n", size);
 
-	if (*bytes_read == GNUTLS_E_AGAIN) {
+	if (b_read == GNUTLS_E_AGAIN) {
 		status = G_IO_STATUS_AGAIN;
 	}
-	else if (*bytes_read > len) {
+	else if (b_read > len) {
 		status = G_IO_STATUS_EOF;
 	}
-	else if (*bytes_read < 0) {
+	else if (b_read < 0) {
 		status = G_IO_STATUS_ERROR;
 	} else {
 		*bytes_read = (guint) b_read;