Browse Source

[Fix] Fix parsing of forwarded IP

tags/1.3.4
Vsevolod Stakhov 7 years ago
parent
commit
5e5dd95493
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/controller.c

+ 2
- 2
src/controller.c View File

@@ -378,8 +378,8 @@ rspamd_controller_check_forwarded (struct rspamd_controller_session *session,
else {
comma = hdr->begin;
}
if (rspamd_parse_inet_address (&addr, hdr->begin,
comma - hdr->begin)) {
if (rspamd_parse_inet_address (&addr, comma,
(hdr->begin + hdr->len) - comma)) {
/* We have addr now, so check if it is still trusted */
if (ctx->secure_map &&
radix_find_compressed_addr (ctx->secure_map,

Loading…
Cancel
Save