summaryrefslogtreecommitdiffstats
path: root/src/hidden.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-12-28 07:49:05 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-12-28 07:49:05 +0100
commit2266aed7f373e2f9b70f0b3201f19b80392fcfa7 (patch)
treebb2d94be9939d2073a03cedc71f5471e91cf0439 /src/hidden.c
parent983d5cf0ece3d8f4002477ef474f1515075900c8 (diff)
Better check for HPA/DCO reporting
Diffstat (limited to 'src/hidden.c')
-rw-r--r--src/hidden.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hidden.c b/src/hidden.c
index d1d776f..556bbfa 100644
--- a/src/hidden.c
+++ b/src/hidden.c
@@ -37,8 +37,8 @@ int is_hpa_or_dco(const disk_t *disk)
log_warning("%s: Host Protected Area (HPA) present.\n", disk->device);
res=1;
}
- if((disk->user_max> 0 && disk->native_max < disk->dco) ||
- (disk->native_max == 0 && disk->user_max > 0 && disk->user_max < disk->dco))
+ if((disk->native_max > 0 && disk->native_max < disk->dco) ||
+ (disk->user_max > 0 && disk->user_max < disk->dco))
{
log_warning("%s: Device Configuration Overlay (DCO) present.\n", disk->device);
res=1;