]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-server-request - Fix blocking payload input stream error handling.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 25 Mar 2018 18:03:47 +0000 (20:03 +0200)
committermartti.rannanjarvi <martti.rannanjarvi@open-xchange.com>
Sat, 18 Apr 2020 14:55:11 +0000 (14:55 +0000)
src/lib-http/http-server-request.c

index d7d22f8560d934c207f8d60c941a5bd0b556db71..f266ab9c3e6d82ab0e52359ad02752eb15fe20f6 100644 (file)
@@ -550,7 +550,7 @@ http_server_istream_read_any(struct http_server_istream *hsristream)
        struct http_server *server = hsristream->req->server;
        ssize_t ret;
 
-       if ((ret = i_stream_read_copy_from_parent(&stream->istream)) > 0) {
+       if ((ret = i_stream_read_copy_from_parent(&stream->istream)) != 0) {
                hsristream->read_status = ret;
                io_loop_stop(server->ioloop);
        }