]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Added data stack frame to avoid unnecessary data stack wasting.
authorTimo Sirainen <tss@iki.fi>
Wed, 10 Apr 2013 11:51:37 +0000 (14:51 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 10 Apr 2013 11:51:37 +0000 (14:51 +0300)
src/lib-http/http-client-request.c

index 8e9392d4954fab323ed29e4266228b3bcc3d7138..4f248cd96070b8a47d5ec75affc53e0624f92120 100644 (file)
@@ -365,8 +365,8 @@ int http_client_request_send_more(struct http_client_request *req,
        return ret < 0 ? -1 : 0;
 }
 
-int http_client_request_send(struct http_client_request *req,
-                            const char **error_r)
+static int http_client_request_send_real(struct http_client_request *req,
+                                        const char **error_r)
 {
        struct http_client_connection *conn = req->conn;
        struct ostream *output = conn->conn.output;
@@ -435,6 +435,17 @@ int http_client_request_send(struct http_client_request *req,
        return ret;
 }
 
+int http_client_request_send(struct http_client_request *req,
+                            const char **error_r)
+{
+       int ret;
+
+       T_BEGIN {
+               ret = http_client_request_send_real(req, error_r);
+       } T_END;
+       return ret;
+}
+
 bool http_client_request_callback(struct http_client_request *req,
                             struct http_response *response)
 {