do not write the trailing nul char in send_commands

That triggered creation of a new client, followed by it's immediate
destruction due to the connection closing.
This commit is contained in:
Maxime Coste 2014-03-25 09:23:11 +00:00
parent 0bc57e43d2
commit b677f9da63

View File

@ -467,7 +467,7 @@ void send_command(const String& session, const String& command)
{
Message msg(sock);
msg.write(command.c_str(), (int)command.length()+1);
msg.write(command.c_str(), (int)command.length());
}
close(sock);
}