aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-06 15:36:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-06 15:36:23 +0100
commitb6085d45f1a31b4bf19abf91d5926e1ef87d39ca (patch)
tree87f2c55b9eb6a99e56eb4afeabd3aa49fc1c8b5c /src/libmime
parent83bcd4071050fa82deed1428cc587a1574b9c507 (diff)
downloadrspamd-b6085d45f1a31b4bf19abf91d5926e1ef87d39ca.tar.gz
rspamd-b6085d45f1a31b4bf19abf91d5926e1ef87d39ca.zip
[Minor] Add erroring to smtp parse date
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/mime_headers.c2
-rw-r--r--src/libmime/smtp_parsers.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c
index 34cafd8cb..bbf1dc31d 100644
--- a/src/libmime/mime_headers.c
+++ b/src/libmime/mime_headers.c
@@ -1655,7 +1655,7 @@ rspamd_smtp_received_parse (struct rspamd_task *task,
if (date_pos > 0 && date_pos < len) {
rh->timestamp = rspamd_parse_smtp_date (data + date_pos,
- len - date_pos);
+ len - date_pos, NULL);
}
return 0;
diff --git a/src/libmime/smtp_parsers.h b/src/libmime/smtp_parsers.h
index 3a52f1dd6..067d84424 100644
--- a/src/libmime/smtp_parsers.h
+++ b/src/libmime/smtp_parsers.h
@@ -46,7 +46,7 @@ rspamd_rfc2047_parser (const gchar *in, gsize len, gint *pencoding,
rspamd_inet_addr_t *rspamd_parse_smtp_ip (const char *data, size_t len,
rspamd_mempool_t *pool);
-guint64 rspamd_parse_smtp_date (const char *data, size_t len);
+guint64 rspamd_parse_smtp_date (const char *data, size_t len, GError **err);
#ifdef __cplusplus
}