connection::actions(): Fix command masking

This commit is contained in:
Petr Baudis 2011-11-29 19:32:08 +01:00
parent 7b7b2cf76d
commit 04fc7b4b7a

View file

@ -60,9 +60,8 @@ connection::actions(class agent &agent)
return; return;
} }
int mask = 0;
while (in_buf.c_str()[0] != '\r') { while (in_buf.c_str()[0] != '\r') {
int mask = 0;
int nlofs = in_buf.find("\r\n"); int nlofs = in_buf.find("\r\n");
std::string line = in_buf.substr(0, nlofs); std::string line = in_buf.substr(0, nlofs);
in_buf.erase(0, nlofs + 2); in_buf.erase(0, nlofs + 2);