]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-server-connection - Fix http_server_connection_flush() return value.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 17 Nov 2019 23:11:43 +0000 (00:11 +0100)
committermartti.rannanjarvi <martti.rannanjarvi@open-xchange.com>
Sat, 18 Apr 2020 14:55:11 +0000 (14:55 +0000)
src/lib-http/http-server-connection.c

index 06a22f5c06951292e36f997ea272fb59acc36d31..c594ed0d498f56902fb876e0c0c0df7ed63f8e90 100644 (file)
@@ -927,7 +927,7 @@ int http_server_connection_flush(struct http_server_connection *conn)
        if ((ret = o_stream_flush(output)) <= 0) {
                if (ret < 0)
                        http_server_connection_handle_output_error(conn);
-               return -1;
+               return ret;
        }
 
        http_server_connection_timeout_reset(conn);