Bläddra i källkod

* Fix regression in EncryptedStream for reading older formats

Bryan Drewery 16 år sedan
förälder
incheckning
8970dcb4aa
1 ändrade filer med 3 tillägg och 0 borttagningar
  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];