aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-tcp-stream-openssl.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 407f05eb14..81c2eab6de 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-30 <NotZed@Ximian.com>
+
+ * camel-tcp-stream-openssl.c (stream_write): Fixed compilation
+ errors.
+
2001-10-29 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (camel_mime_utils_init): Removed unused
diff --git a/camel/camel-tcp-stream-openssl.c b/camel/camel-tcp-stream-openssl.c
index e7dab0aaf7..929db60e8f 100644
--- a/camel/camel-tcp-stream-openssl.c
+++ b/camel/camel-tcp-stream-openssl.c
@@ -285,7 +285,7 @@ stream_write (CamelStream *stream, const char *buffer, size_t n)
do {
w = SSL_write (ssl, buffer + written, n - written);
if (w < 0)
- ssl_error_to_errno (SSL_get_error (ssl, w));
+ ssl_error_to_errno (ssl, SSL_get_error (ssl, w));
} while (w < 0 && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK));
if (w > 0)
@@ -323,7 +323,7 @@ stream_write (CamelStream *stream, const char *buffer, size_t n)
w = 0;
} else {
error = errno;
- fcntl (tcp_stream_raw->sockfd, F_SETFL, flags);
+ fcntl (tcp_stream_openssl->priv->sockfd, F_SETFL, flags);
errno = error;
return -1;
}