Patch from Sergio Villar Senín <svillar@igalia.com>: Fix for bug #546444 (Don't...
authorSuman Manjunath <msuman@src.gnome.org>
Mon, 18 Aug 2008 03:24:22 +0000 (03:24 +0000)
committerSuman Manjunath <msuman@src.gnome.org>
Mon, 18 Aug 2008 03:24:22 +0000 (03:24 +0000)
svn path=/trunk/; revision=9361

camel/ChangeLog
camel/camel-tcp-stream-ssl.c

index d8ba66c..c429931 100644 (file)
@@ -1,3 +1,11 @@
+2008-08-18  Sergio Villar Senín  <svillar@igalia.com>
+
+       ** Fix for bug #546444
+
+       * camel-tcp-stream-ssl.c (stream_read): Don't loop infinitely when the 
+       network connection is lost while fetching a message, instead exit with 
+       a connection error. 
+
 2008-08-15  Srinivasa Ragavan  <sragavan@novell.com>
 
        * camel/camel-vtrash-folder.c: Make trash/junk close to a normal vee
index 17f08c8..7aac75c 100644 (file)
@@ -391,6 +391,7 @@ stream_read (CamelStream *stream, char *buffer, size_t n)
 #else
                                errno = EIO;
 #endif
+                               goto failed;
                        } else if (pollfds[1].out_flags == PR_POLL_READ) {
                                errno = EINTR;
                                goto failed;