From 0e1dc79321bc9002da7a45bda2f067da17edee7e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 15 Sep 2011 21:00:29 +0200 Subject: [PATCH] input/soup: report failure in _read() To report failures to callers who don't use _buffer(). --- src/input/soup_input_plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/soup_input_plugin.c b/src/input/soup_input_plugin.c index 7a2f3b47a..dfd3c2780 100644 --- a/src/input/soup_input_plugin.c +++ b/src/input/soup_input_plugin.c @@ -308,6 +308,7 @@ input_soup_read(struct input_stream *is, void *ptr, size_t size, assert(!s->alive); g_mutex_unlock(s->mutex); + g_set_error_literal(error_r, soup_quark(), 0, "HTTP failure"); return 0; }