summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-24 16:32:30 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-24 16:32:30 +0100
commitee897f54b24371d7132621de4ef80e5749b4e5fc (patch)
tree4ffa4ba5d4153d62ce43f80a3bfd33d3958855d7 /src
parentad47d0053b6ea3edec5d23a788a0fe898ea9f6ba (diff)
downloadrspamd-ee897f54b24371d7132621de4ef80e5749b4e5fc.tar.gz
rspamd-ee897f54b24371d7132621de4ef80e5749b4e5fc.zip
Received parser fix.
Diffstat (limited to 'src')
-rw-r--r--src/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/message.c b/src/message.c
index 9e7eecfa2..654331a70 100644
--- a/src/message.c
+++ b/src/message.c
@@ -393,7 +393,7 @@ parse_recv_header (memory_pool_t * pool, gchar *line, struct received_header *r)
s = ++p;
state = RSPAMD_RECV_STATE_PARSE_IP;
res = &r->real_ip;
- next_state = RSPAMD_RECV_STATE_IP_BLOCK;
+ next_state = RSPAMD_RECV_STATE_BRACES_BLOCK;
}
else {
if (p > s) {
@@ -497,7 +497,7 @@ parse_recv_header (memory_pool_t * pool, gchar *line, struct received_header *r)
while (g_ascii_isdigit (*++p) || *p == '.' || *p == ':');
if (*p != ']') {
/* Not an ip in fact */
- state = next_state;
+ state = RSPAMD_RECV_STATE_SKIP_SPACES;
p++;
}
else {
@@ -505,7 +505,7 @@ parse_recv_header (memory_pool_t * pool, gchar *line, struct received_header *r)
*res = memory_pool_strdup (pool, s);
*p = ']';
p++;
- state = next_state;
+ state = RSPAMD_RECV_STATE_SKIP_SPACES;
}
break;