This bug slipped in on changing back match-specific to match-any

Signed-off-by: Michael Karcher <flash...@mkarcher.dialup.fu-berlin.de>
---
 dmi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dmi.c b/dmi.c
index d165e9f..f97aff7 100644
--- a/dmi.c
+++ b/dmi.c
@@ -162,7 +162,8 @@ int dmi_match(const char *pattern)
                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;
 }
-- 
1.6.5


_______________________________________________
flashrom mailing list
flashrom@flashrom.org
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to