dovecot-2.2: lib-http: Fixed handling of limits=NULL parameter f...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 18 23:24:48 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/34d3a9a883fa
changeset: 16765:34d3a9a883fa
user: Stephan Bosch <stephan at rename-it.nl>
date: Wed Sep 18 23:24:02 2013 +0300
description:
lib-http: Fixed handling of limits=NULL parameter for http_request_parser_init.
Got messed up in patch queue.
diffstat:
src/lib-http/http-request-parser.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (25 lines):
diff -r a7be7ee98538 -r 34d3a9a883fa src/lib-http/http-request-parser.c
--- a/src/lib-http/http-request-parser.c Wed Sep 18 00:00:05 2013 +0300
+++ b/src/lib-http/http-request-parser.c Wed Sep 18 23:24:02 2013 +0300
@@ -42,15 +42,16 @@
{
struct http_request_parser *parser;
struct http_header_limits hdr_limits;
- uoff_t max_payload_size = limits->max_payload_size;
+ uoff_t max_payload_size;
parser = i_new(struct http_request_parser, 1);
- parser->max_target_length = limits->max_target_length;
-
- if (limits != NULL)
+ if (limits != NULL) {
hdr_limits = limits->header;
- else
+ max_payload_size = limits->max_payload_size;
+ } else {
memset(&hdr_limits, 0, sizeof(hdr_limits));
+ max_payload_size = 0;
+ }
/* substitute default limits */
if (parser->max_target_length == 0)
More information about the dovecot-cvs
mailing list