Fixes #7526
fork-5.53.8
Moxie Marlinspike 2018-03-14 23:40:01 -07:00
rodzic 90006e81db
commit 73233c01ba
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -265,8 +265,11 @@ public class FullBackupExporter extends FullBackupBase {
while ((read = in.read(buffer)) != -1) {
byte[] ciphertext = cipher.update(buffer, 0, read);
outputStream.write(ciphertext);
mac.update(ciphertext);
if (ciphertext != null) {
outputStream.write(ciphertext);
mac.update(ciphertext);
}
}
byte[] remainder = cipher.doFinal();