diff options
author | George Hazan <george.hazan@gmail.com> | 2024-06-19 15:30:27 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-06-19 15:30:27 +0300 |
commit | afbf8bbcbef25da6944c41f369032d1d54016acb (patch) | |
tree | 06da1e4ab33b68d111c7daf54603860cc62201f8 | |
parent | f3427b15963104a9c63864cc2aef04d01a2ce767 (diff) |
fixes #4471 (XMPP: при использовании шифрования OMEMO перестаёт работать HTTP File Upload)
-rw-r--r-- | protocols/JabberG/src/jabber_ft.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_ft.cpp b/protocols/JabberG/src/jabber_ft.cpp index ed17240b5b..43f1d0972d 100644 --- a/protocols/JabberG/src/jabber_ft.cpp +++ b/protocols/JabberG/src/jabber_ft.cpp @@ -716,7 +716,7 @@ LBL_Fail: EVP_EncryptInit(ctx, EVP_aes_256_gcm(), key, iv);
int tmp_len = 0, outl;
- nlhr.m_szParam.Truncate(_filelength(fileId) + _countof(key) - 1 + _countof(tag));
+ nlhr.m_szParam.Truncate(_filelength(fileId) + _countof(tag));
unsigned char *out = (unsigned char *)nlhr.m_szParam.GetBuffer();
unsigned char *in = (unsigned char *)mir_alloc(128 * 1024);
for (;;) {
|