]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix check for compression method in rar seek method.
authorAndres Mejia <amejia004@gmail.com>
Tue, 22 Jan 2013 04:32:49 +0000 (23:32 -0500)
committerAndres Mejia <amejia004@gmail.com>
Tue, 22 Jan 2013 04:32:49 +0000 (23:32 -0500)
libarchive/archive_read_support_format_rar.c

index 2f4020e8958594d40a46e597dea83da9794a8899..7492a50bab6796964fe0837d9547bb0d3fb0c090 100644 (file)
@@ -1019,7 +1019,7 @@ archive_read_format_rar_seek_data(struct archive_read *a, int64_t offset,
   unsigned int i;
   struct rar *rar = (struct rar *)(a->format->data);
 
-  if (rar->compression_method & COMPRESS_METHOD_STORE)
+  if (rar->compression_method == COMPRESS_METHOD_STORE)
   {
     /* Modify the offset for use with SEEK_SET */
     switch (whence)