More correct handling of incorrect actor id from client
This commit is contained in:
@@ -149,13 +149,14 @@ public:
|
||||
} catch (const StreamEofOnRead &seof) {
|
||||
sb->unread_to(tr_before);
|
||||
return false;
|
||||
} catch (const StreamCorruption &scorr) {
|
||||
} catch (const StreamException &sexcept) {
|
||||
delete_client(client);
|
||||
return false;
|
||||
}
|
||||
// Security check.
|
||||
if (inv.actor() != client->actor_id_) {
|
||||
stdostream() << "Ignoring invoke with wrong actor ID " << inv.actor() << std::endl;
|
||||
return true;
|
||||
delete_client(client);
|
||||
return false;
|
||||
}
|
||||
//stdostream() << "Invoking: " << inv.debug_string() << std::endl;
|
||||
master_->invoke(inv);
|
||||
|
||||
Reference in New Issue
Block a user