From 04fc7b4b7a6675407ee9da3286e0005c18c47461 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 29 Nov 2011 19:32:08 +0100 Subject: [PATCH] connection::actions(): Fix command masking --- connection.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/connection.cc b/connection.cc index 29de6d9..a06a013 100644 --- a/connection.cc +++ b/connection.cc @@ -60,9 +60,8 @@ connection::actions(class agent &agent) return; } + int mask = 0; while (in_buf.c_str()[0] != '\r') { - int mask = 0; - int nlofs = in_buf.find("\r\n"); std::string line = in_buf.substr(0, nlofs); in_buf.erase(0, nlofs + 2);