aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcebka@lenovo-laptop <cebka@lenovo-laptop>2010-02-15 17:19:23 +0300
committercebka@lenovo-laptop <cebka@lenovo-laptop>2010-02-15 17:19:23 +0300
commit4270a88a02a5bab1225d8ae63d5c840457155b89 (patch)
tree197811ccb19ec075dee6b503337dc264818a35d1
parent22b965e141130042802a6a92dfe2f8d34881344b (diff)
downloadrspamd-4270a88a02a5bab1225d8ae63d5c840457155b89.tar.gz
rspamd-4270a88a02a5bab1225d8ae63d5c840457155b89.zip
* Allways set some protocol version even if command is not valid
-rw-r--r--src/protocol.c3
1 files changed, 2 insertions, 1 deletions
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;