evolution-data-server r10193 - trunk/camel
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r10193 - trunk/camel
- Date: Fri, 27 Mar 2009 15:47:24 +0000 (UTC)
Author: mcrha
Date: Fri Mar 27 15:47:24 2009
New Revision: 10193
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=10193&view=rev
Log:
2009-03-27 Milan Crha <mcrha redhat com>
** Fix for bug #569700
* camel-http-stream.c: (stream_read):
Disconnect properly on a failure.
Modified:
trunk/camel/ChangeLog
trunk/camel/camel-http-stream.c
Modified: trunk/camel/camel-http-stream.c
==============================================================================
--- trunk/camel/camel-http-stream.c (original)
+++ trunk/camel/camel-http-stream.c Fri Mar 27 15:47:24 2009
@@ -425,14 +425,20 @@
if (http_connect (http, http->proxy ? http->proxy : http->url) == NULL)
return -1;
- if (http_method_invoke (http) == -1)
+ if (http_method_invoke (http) == -1) {
+ http_disconnect(http);
return -1;
+ }
- if (http_get_statuscode (http) == -1)
+ if (http_get_statuscode (http) == -1) {
+ http_disconnect(http);
return -1;
+ }
- if (http_get_headers (http) == -1)
+ if (http_get_headers (http) == -1) {
+ http_disconnect(http);
return -1;
+ }
switch (http->statuscode) {
case 200:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]