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++)