2005-05-13 Mikael Hallendal <micke@imendio.com>
authorhallski <hallski>
Fri, 13 May 2005 19:27:54 +0000 (19:27 +0000)
committerhallski <hallski>
Fri, 13 May 2005 19:27:54 +0000 (19:27 +0000)
* loudmouth/lm-ssl.c: (_lm_ssl_read):
- Try to fix LM-3 for real this time.

ChangeLog
loudmouth/lm-ssl.c

index ad840f3359a0ccbbe0416930b8991623564e6c54..ae8e445b16b246ac72a39a07c8b959c21297ec94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index ec89ed1302df4f2a9466cb702a333dccee9cb6d8..d98abf74b152de564e7e900867930813ae5abe7c 100644 (file)
@@ -209,13 +209,13 @@ _lm_ssl_read (LmSSL *ssl, gchar *buf, gint len, gsize *bytes_read)
 
        //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;