mirror of
https://github.com/ceph/ceph
synced 2025-03-05 07:48:55 +00:00
osd/OSD: add 'isvalid=false' when failed to parse caps
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
This commit is contained in:
parent
94883e0459
commit
a5e5420f94
@ -7057,12 +7057,15 @@ bool OSD::ms_verify_authorizer(Connection *con, int peer_type,
|
||||
::decode(str, p);
|
||||
}
|
||||
catch (buffer::error& e) {
|
||||
isvalid = false;
|
||||
}
|
||||
bool success = s->caps.parse(str);
|
||||
if (success)
|
||||
dout(10) << " session " << s << " " << s->entity_name << " has caps " << s->caps << " '" << str << "'" << dendl;
|
||||
else
|
||||
else {
|
||||
dout(10) << " session " << s << " " << s->entity_name << " failed to parse caps '" << str << "'" << dendl;
|
||||
isvalid = false;
|
||||
}
|
||||
}
|
||||
|
||||
s->put();
|
||||
|
Loading…
Reference in New Issue
Block a user