summaryrefslogtreecommitdiff
path: root/cmds/incidentd/src/cipher/ProtoEncryption.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/incidentd/src/cipher/ProtoEncryption.cpp')
-rw-r--r--cmds/incidentd/src/cipher/ProtoEncryption.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/incidentd/src/cipher/ProtoEncryption.cpp b/cmds/incidentd/src/cipher/ProtoEncryption.cpp
index 493796d2af4d..11f0b2ace99a 100644
--- a/cmds/incidentd/src/cipher/ProtoEncryption.cpp
+++ b/cmds/incidentd/src/cipher/ProtoEncryption.cpp
@@ -87,8 +87,8 @@ status_t ProtoDecryptor::readOneBlock(string* output) {
mReader->move(toRead);
}
if (pos != sectionSize) {
- return BAD_VALUE;
ALOGE("Failed to read one block");
+ return BAD_VALUE;
}
} else {
return BAD_VALUE;