connection::actions(): Close a connection attempting to connect to bad agent id

This commit is contained in:
Petr Baudis 2011-12-26 21:47:23 +01:00
parent be10580643
commit 3aae38c1cf

View file

@ -157,6 +157,7 @@ connection::actions(int tick_id, class agent *agent)
if (id < 0) {
bump_negot:
bump(); out_buf.append("\r\n");
close(fd);
} else {
class agent *a2 = NULL;
for (std::list<class agent *>::iterator ai = agents.begin(); ai != agents.end(); ai++) {