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