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);