From ee897f54b24371d7132621de4ef80e5749b4e5fc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 24 Jun 2013 16:32:30 +0100 Subject: Received parser fix. --- src/message.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3