From: cebka@lenovo-laptop Date: Mon, 15 Feb 2010 14:19:23 +0000 (+0300) Subject: * Allways set some protocol version even if command is not valid X-Git-Tag: 0.3.0~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4270a88a02a5bab1225d8ae63d5c840457155b89;p=rspamd.git * Allways set some protocol version even if command is not valid --- 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;