From b81043959446e4f848e5a9acea19d257acc3f23d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 26 Dec 2022 23:07:58 +0000 Subject: [PATCH] libblkid: sun: use generic checksum handling --- libblkid/src/partitions/sun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid/src/partitions/sun.c b/libblkid/src/partitions/sun.c index 058a663727..ce24364f51 100644 --- a/libblkid/src/partitions/sun.c +++ b/libblkid/src/partitions/sun.c @@ -33,7 +33,7 @@ static int probe_sun_pt(blkid_probe pr, goto nothing; } - if (sun_pt_checksum(l)) { + if (!blkid_probe_verify_csum(pr, sun_pt_checksum(l), 0)) { DBG(LOWPROBE, ul_debug( "detected corrupted sun disk label -- ignore")); goto nothing; -- 2.47.3