input/soup: report failure in _read()

To report failures to callers who don't use _buffer().
This commit is contained in:
Max Kellermann 2011-09-15 21:00:29 +02:00
parent 0ef15e5fac
commit 0e1dc79321

View File

@ -308,6 +308,7 @@ input_soup_read(struct input_stream *is, void *ptr, size_t size,
assert(!s->alive); assert(!s->alive);
g_mutex_unlock(s->mutex); g_mutex_unlock(s->mutex);
g_set_error_literal(error_r, soup_quark(), 0, "HTTP failure");
return 0; return 0;
} }