diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-21 13:26:23 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-21 13:26:23 +0000 |
commit | c9cdf449078ce760c0528600370b35e3f26c2f08 (patch) | |
tree | 00d6a557aaa67fb46311b108329b9bf42e77c0d2 /src/ragel/smtp_received_parser.rl | |
parent | f41e30b785e5d35bf11c71ed3346095eacb797b4 (diff) | |
download | rspamd-c9cdf449078ce760c0528600370b35e3f26c2f08.tar.gz rspamd-c9cdf449078ce760c0528600370b35e3f26c2f08.zip |
[Feature] Add parser for SMTP date
Diffstat (limited to 'src/ragel/smtp_received_parser.rl')
-rw-r--r-- | src/ragel/smtp_received_parser.rl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ragel/smtp_received_parser.rl b/src/ragel/smtp_received_parser.rl index c599e0495..cc4d37e0c 100644 --- a/src/ragel/smtp_received_parser.rl +++ b/src/ragel/smtp_received_parser.rl @@ -284,10 +284,12 @@ rspamd_smtp_recieved_parse (struct rspamd_task *task, const char *data, size_t l *reported_domain_start, *reported_domain_end, *reported_ip_start, *reported_ip_end, *ip_start, *ip_end, *date_start, - *for_start, *for_end; + *for_start, *for_end, *tmp; + struct tm tm; const char *p = data, *pe = data + len, *eof; int cs, in_v6 = 0, *stack = NULL; gsize top = 0; + glong tz = 0; struct _ragel_st_storage { int *data; gsize size; @@ -295,6 +297,7 @@ rspamd_smtp_recieved_parse (struct rspamd_task *task, const char *data, size_t l memset (&st_storage, 0, sizeof (st_storage)); memset (rh, 0, sizeof (*rh)); + memset (&tm, 0, sizeof (tm)); real_domain_start = NULL; real_domain_end = NULL; real_ip_start = NULL; |