]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-server-response - Fix dead assignment in http_server_response_send_real().
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 6 May 2020 00:04:31 +0000 (02:04 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 6 May 2020 10:56:50 +0000 (12:56 +0200)
Found by Clang scan-build.

src/lib-http/http-server-response.c

index 72348ac375d2321e3fa11b7c71ff3df4d6c741bf..00947d80dbb3d0f917838de98f9125267282e455 100644 (file)
@@ -722,7 +722,6 @@ static int http_server_response_send_real(struct http_server_response *resp)
        iov[2].iov_base = "\r\n";
        iov[2].iov_len = 2;
 
-       ret = 1;
        req->state = HTTP_SERVER_REQUEST_STATE_PAYLOAD_OUT;
        o_stream_cork(conn->conn.output);