mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix some regressions on empty key listings
This commit is contained in:
parent
6b53688249
commit
2b4ce52a10
1 changed files with 2 additions and 1 deletions
|
|
@ -1172,6 +1172,7 @@ fn wrapped_main() -> ! {
|
|||
Some(list)
|
||||
}
|
||||
Err(e) => {
|
||||
key_token = None;
|
||||
match e.kind() {
|
||||
std::io::ErrorKind::NotFound => req.code = PddbRequestCode::NotFound,
|
||||
_ => req.code = PddbRequestCode::InternalError,
|
||||
|
|
@ -1237,7 +1238,7 @@ fn wrapped_main() -> ! {
|
|||
Opcode::DictCountInBasis => {
|
||||
let mut buffer = unsafe { Buffer::from_memory_message_mut(msg.body.memory_message_mut().unwrap()) };
|
||||
let mut req = buffer.to_original::<PddbDictRequest, _>().unwrap();
|
||||
if key_token.is_some() {
|
||||
if dict_token.is_some() {
|
||||
req.code = PddbRequestCode::AccessDenied;
|
||||
buffer.replace(req).unwrap();
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue