From: Stephan Bosch Date: Wed, 6 May 2020 00:04:31 +0000 (+0200) Subject: lib-http: http-server-response - Fix dead assignment in http_server_response_send_real(). X-Git-Tag: 2.3.11.2~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=625d05169b00d8982b858883ec52098d9d021e38;p=thirdparty%2Fdovecot%2Fcore.git lib-http: http-server-response - Fix dead assignment in http_server_response_send_real(). Found by Clang scan-build. --- diff --git a/src/lib-http/http-server-response.c b/src/lib-http/http-server-response.c index 72348ac375..00947d80db 100644 --- a/src/lib-http/http-server-response.c +++ b/src/lib-http/http-server-response.c @@ -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);