Commit 03e82633 authored by Niels Möller's avatar Niels Möller
Browse files

Allow only one service request.

Rev: src/service.c:1.3
parent d535f9d8
......@@ -68,7 +68,11 @@ static int do_service(struct packet_handler *c,
? LSH_FAIL | LSH_DIE
: LSH_FAIL | LSH_CLOSE);
}
return A_WRITE(c->write(service_accept(name)));
/* Don't accept any further service requests */
connection->dispatch[SSH_SERVICE_REQUEST]
= connection->fail;
return A_WRITE(c->write(format_service_accept(name)));
}
return LSH_FAIL | LSH_DIE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment