From 7ad12f433dd6939833aed87593985d8efd967955 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Mon, 9 Nov 2009 00:28:10 +0100 Subject: [PATCH] 2009-11-09 Vladimir Serbinenko * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage. --- ChangeLog | 4 ++++ normal/auth.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 346647bca..527b66f61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-11-09 Vladimir Serbinenko + + * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage. + 2009-11-09 Robert Millan * util/i386/coreboot/grub-mkrescue.in: New file. diff --git a/normal/auth.c b/normal/auth.c index afe65315d..615e993a3 100644 --- a/normal/auth.c +++ b/normal/auth.c @@ -40,7 +40,7 @@ grub_auth_strcmp (const char *user_input, const char *template) int ok = 1; const char *ptr1, *ptr2; - if (ptr2 == NULL) + if (template == NULL) ok = 0; for (ptr1 = user_input, ptr2 = template; *ptr1; ptr1++)