mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Calculate the checksum the right place for alpha. The fact that this
worked for the beast disklabel only goes to show how weak a simple parity really is.
This commit is contained in:
parent
30af5d1325
commit
b7cb368d31
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ g_bsd_alpha(struct g_consumer *cp, int secsize, struct disklabel *dl)
|
|||
g_bsd_ledec_disklabel(buf + 64, dl);
|
||||
if (dl->d_magic == DISKMAGIC &&
|
||||
dl->d_magic2 == DISKMAGIC &&
|
||||
g_bsd_lesum(dl, buf) == 0)
|
||||
g_bsd_lesum(dl, buf + 64) == 0)
|
||||
error = 0;
|
||||
else
|
||||
error = ENOENT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue