Преглед изворни кода

* Fix regression in EncryptedStream for reading older formats

Bryan Drewery пре 16 година
родитељ
комит
8970dcb4aa
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/EncryptedStream.c

+ 3 - 0
src/EncryptedStream.c

@@ -16,6 +16,9 @@ int EncryptedStream::loadFile (const int fd) {
 
   bd::String in_buf;
 
+  // When loading, we should never be told what format it is in, just determine it from the header.
+  enc_flags = 0;
+
   /* Peak at the first few bytes to determine the algorithm used */
   if (str[0] == 0x7F && str[2] == 0x7F) {
     enc_flags = str[1];