2009-03-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #569700
* camel-http-stream.c: (stream_read):
Disconnect properly on a failure.
svn path=/trunk/; revision=10193
+2009-03-27 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #569700
+
+ * camel-http-stream.c: (stream_read):
+ Disconnect properly on a failure.
+
2009-03-12 Matthew Barnes <mbarnes@redhat.com>
* camel-db.c:
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: