diff options
author | phk <phk@FreeBSD.org> | 2003-06-01 09:18:49 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-06-01 09:18:49 +0000 |
commit | 305dd90d00e61906978e37397342e29a986fff14 (patch) | |
tree | e9d369ce3abe949f76ea06bd63abc7ea1e8fbfc7 /sys/geom | |
parent | 3f94d0804657dbe5bb1c1fe4fa484c0511a73aca (diff) | |
download | FreeBSD-src-305dd90d00e61906978e37397342e29a986fff14.zip FreeBSD-src-305dd90d00e61906978e37397342e29a986fff14.tar.gz |
Use bcmp() to compare hash strings.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 562c78a..41a141c 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -620,7 +620,7 @@ g_bsd_taste(struct g_class *mp, struct g_provider *pp, int flags) MD5Final(ms->labelsum, &md5sum); error = g_getattr("BSD::labelsum", cp, &hash); - if (!error && !strncmp(ms->labelsum, hash, sizeof(hash))) + if (!error && !bcmp(ms->labelsum, hash, sizeof(hash))) break; /* |