]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Add missing 'continue' in Grow_restart.
authorNeilBrown <neilb@suse.de>
Tue, 20 Oct 2009 04:36:49 +0000 (15:36 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 20 Oct 2009 04:36:49 +0000 (15:36 +1100)
Thus we weren't checking the uuid properly.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 9eb637c9f795f351313c52db9919790070d5d2fa..554649a9dad669156000a7001dd478dbe15795fd 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -1605,6 +1605,7 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt
                        continue; /* bad checksum */
                if (memcmp(bsb.magic, "md_backup_data-2", 16) == 0 &&
                    bsb.sb_csum2 != bsb_csum((char*)&bsb, ((char*)&bsb.sb_csum2)-((char*)&bsb)))
+                       continue; /* Bad second checksum */
                if (memcmp(bsb.set_uuid,info->uuid, 16) != 0)
                        continue; /* Wrong uuid */