From 4270a88a02a5bab1225d8ae63d5c840457155b89 Mon Sep 17 00:00:00 2001 From: "cebka@lenovo-laptop" Date: Mon, 15 Feb 2010 17:19:23 +0300 Subject: [PATCH] * Allways set some protocol version even if command is not valid --- src/protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol.c b/src/protocol.c index feb577368..134820cab 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -125,6 +125,8 @@ parse_command (struct worker_task *task, f_str_t * line) return -1; } + task->proto_ver = RSPAMC_PROTO_1_1; + switch (token[0]) { case 'c': case 'C': @@ -211,7 +213,6 @@ parse_command (struct worker_task *task, f_str_t * line) } else if (strncasecmp (line->begin, SPAMC_GREETING, sizeof (SPAMC_GREETING) - 1) == 0) { task->proto = SPAMC_PROTO; - task->proto_ver = RSPAMC_PROTO_1_1; } else { return -1; -- 2.39.5