Fix DMI match logic
This bug slipped in on changing back match-specific to match-any
Corresponding to flashrom svn r896.
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
diff --git a/dmi.c b/dmi.c
index d165e9f..f97aff7 100644
--- a/dmi.c
+++ b/dmi.c
@@ -162,7 +162,8 @@
return 0;
for (i = 0;i < DMI_ID_INVALID; i++)
- return dmi_compare(dmistrings[i], pattern);
+ if(dmi_compare(dmistrings[i], pattern))
+ return 1;
return 0;
}