mirror of https://github.com/ARMmbed/mbed-os.git
SecureStore: Don't use flags of corrupted data. Allow removing.
parent
56d67360ef
commit
bde9753696
|
@ -491,7 +491,7 @@ int SecureStore::remove(const char *key)
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (info.flags & WRITE_ONCE_FLAG) {
|
||||
if (ret == 0 && info.flags & WRITE_ONCE_FLAG) {
|
||||
ret = MBED_ERROR_WRITE_PROTECTED;
|
||||
goto end;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue