mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
r10104: Fix code before declaration.
(This used to be commit 05c020181560afd4e6957be29795536e2d83d71e)
This commit is contained in:
parent
561a02d646
commit
289127b026
@ -147,8 +147,8 @@ static DATA_BLOB hbin_alloc (struct regf_data *data, uint32_t size, uint32_t *of
|
|||||||
int j;
|
int j;
|
||||||
uint32_t my_size;
|
uint32_t my_size;
|
||||||
for (j = 0; j < hbin->offset_to_next-0x20; j+= my_size) {
|
for (j = 0; j < hbin->offset_to_next-0x20; j+= my_size) {
|
||||||
my_size = IVAL(hbin->data, j);
|
|
||||||
uint32_t header = IVAL(hbin->data, j + 4);
|
uint32_t header = IVAL(hbin->data, j + 4);
|
||||||
|
my_size = IVAL(hbin->data, j);
|
||||||
|
|
||||||
if (my_size == 0x0) {
|
if (my_size == 0x0) {
|
||||||
DEBUG(0, ("Invalid zero-length block! File is corrupt.\n"));
|
DEBUG(0, ("Invalid zero-length block! File is corrupt.\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user