mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +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)
|
Some(list)
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
key_token = None;
|
||||||
match e.kind() {
|
match e.kind() {
|
||||||
std::io::ErrorKind::NotFound => req.code = PddbRequestCode::NotFound,
|
std::io::ErrorKind::NotFound => req.code = PddbRequestCode::NotFound,
|
||||||
_ => req.code = PddbRequestCode::InternalError,
|
_ => req.code = PddbRequestCode::InternalError,
|
||||||
|
|
@ -1237,7 +1238,7 @@ fn wrapped_main() -> ! {
|
||||||
Opcode::DictCountInBasis => {
|
Opcode::DictCountInBasis => {
|
||||||
let mut buffer = unsafe { Buffer::from_memory_message_mut(msg.body.memory_message_mut().unwrap()) };
|
let mut buffer = unsafe { Buffer::from_memory_message_mut(msg.body.memory_message_mut().unwrap()) };
|
||||||
let mut req = buffer.to_original::<PddbDictRequest, _>().unwrap();
|
let mut req = buffer.to_original::<PddbDictRequest, _>().unwrap();
|
||||||
if key_token.is_some() {
|
if dict_token.is_some() {
|
||||||
req.code = PddbRequestCode::AccessDenied;
|
req.code = PddbRequestCode::AccessDenied;
|
||||||
buffer.replace(req).unwrap();
|
buffer.replace(req).unwrap();
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue