diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-11-06 18:56:18 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 18:56:18 +0600 |
commit | c763d4bb58423d1e356263d989a81c7546e577c5 (patch) | |
tree | b943da3d6b7097b2b897c7236c1009ae46185702 /src/ragel/smtp_addr_parser.rl | |
parent | ebf6f29f301c06b9090fe11cb3865b2759f204e3 (diff) | |
parent | b5ba154e32a7c72a2be852b50a92a7c681f5da04 (diff) | |
download | rspamd-c763d4bb58423d1e356263d989a81c7546e577c5.tar.gz rspamd-c763d4bb58423d1e356263d989a81c7546e577c5.zip |
Merge branch 'master' into master
Diffstat (limited to 'src/ragel/smtp_addr_parser.rl')
-rw-r--r-- | src/ragel/smtp_addr_parser.rl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ragel/smtp_addr_parser.rl b/src/ragel/smtp_addr_parser.rl index b5b4863d3..330f3f01d 100644 --- a/src/ragel/smtp_addr_parser.rl +++ b/src/ragel/smtp_addr_parser.rl @@ -8,33 +8,33 @@ action IP4_end {} action User_start { - addr->user = p; + addr->user = (const char *)p; } action User_end { if (addr->user) { - addr->user_len = p - addr->user; + addr->user_len = (const char *)p - addr->user; } } action Domain_start { - addr->domain = p; + addr->domain = (const char *)p; } action Domain_end { if (addr->domain) { - addr->domain_len = p - addr->domain; + addr->domain_len = (const char *)p - addr->domain; } } action Domain_addr_start { - addr->domain = p; + addr->domain = (const char *)p; addr->flags |= RSPAMD_EMAIL_ADDR_IP; } action Domain_addr_end { if (addr->domain) { - addr->domain_len = p - addr->domain; + addr->domain_len = (const char *)p - addr->domain; } } @@ -64,12 +64,12 @@ } action Addr_start { - addr->addr = p; + addr->addr = (const char *)p; } action Addr_end { if (addr->addr) { - addr->addr_len = p - addr->addr; + addr->addr_len = (const char *)p - addr->addr; } } @@ -87,7 +87,7 @@ int rspamd_smtp_addr_parse (const char *data, size_t len, struct rspamd_email_address *addr) { - const char *p = data, *pe = data + len, *eof; + const unsigned char *p = (const unsigned char *)data, *pe = (const unsigned char *)data + len, *eof; int cs; g_assert (addr != NULL); |