aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 70ba1bd83..51290cdf1 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -292,10 +292,11 @@ static gboolean
parse_http_command (struct worker_task *task, f_str_t * line)
{
guint8 *p, *end, *c;
- gint state = 0, next_state;
+ gint state = 0, next_state = 0;
gchar *cmd;
p = line->begin;
+ c = p;
end = p + line->len;
task->proto = RSPAMC_PROTO;