aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-26 12:07:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-26 12:07:29 +0100
commit66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b (patch)
tree45dc9e90027450559bebecfe74c6e6b74d5d6524 /src/libmime
parentf648223e11b724cb485fabd8d344fec3b3e382c5 (diff)
downloadrspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.tar.gz
rspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.zip
[Fix] Do not call implicit strlen to avoid issues
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index ef725e72c..9e9d27d8a 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -1287,7 +1287,7 @@ rspamd_message_parse (struct rspamd_task *task)
if (recv->real_ip) {
if (!rspamd_parse_inet_address (&task->from_addr,
recv->real_ip,
- 0)) {
+ strlen (recv->real_ip))) {
msg_warn_task ("cannot get IP from received header: '%s'",
recv->real_ip);
task->from_addr = NULL;