Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85839053
D186.1793611863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D186.1793611863.diff
View Options
diff --git a/src/client/actions/encryption.cpp b/src/client/actions/encryption.cpp
--- a/src/client/actions/encryption.cpp
+++ b/src/client/actions/encryption.cpp
@@ -73,7 +73,7 @@
return { std::move(m), simpleFail };
}
- kzo.client.dbg() << "Generating one-time keys..." << std::endl;
+ kzo.client.dbg() << "Generating " << a.numToGen << " one-time keys..." << std::endl;
auto maxNumKeys = m.constCrypto().maxNumberOfOneTimeKeys();
auto numLocalKeys = m.constCrypto().numUnpublishedOneTimeKeys();
diff --git a/src/client/client-model.cpp b/src/client/client-model.cpp
--- a/src/client/client-model.cpp
+++ b/src/client/client-model.cpp
@@ -266,6 +266,9 @@
// Subtract the number of existing one-time keys, in case
// the previous upload was not successful.
int numKeysToGenerate = numKeysNeeded - crypto.numUnpublishedOneTimeKeys();
+ if (numKeysToGenerate < 0) {
+ numKeysToGenerate = 0;
+ }
return numKeysToGenerate;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 2, 1:31 AM (18 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1804770
Default Alt Text
D186.1793611863.diff (1 KB)
Attached To
Mode
D186: Fix stuck on generating one-time keys
Attached
Detach File
Event Timeline