More correct handling of incorrect actor id from client

This commit is contained in:
2023-10-23 21:22:48 -04:00
parent 600ae7cef9
commit 912bec91bf

View File

@@ -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);