Yet #5 more BE fixes.

This commit is contained in:
Con Kolivas 2011-03-21 20:31:33 +11:00
parent 637b0d5f7c
commit 279b745cd7

View file

@ -1155,10 +1155,13 @@ again:
goto failed;
header_length = 1 + (read_len * 3);
}
if (ENCRYPT)
decrypt_header(control, enc_head, &c, &v1, &v2, &sinfo->s[i].last_head);
v1 = le64toh(v1);
v2 = le64toh(v2);
sinfo->s[i].last_head = le64toh(sinfo->s[i].last_head);
if (unlikely(c == CTYPE_NONE && v1 == 0 && v2 == 0 && sinfo->s[i].last_head == 0 && i == 0)) {
print_err("Enabling stream close workaround\n");
sinfo->initial_pos += header_length;