diff options
| author | Gary Ching-Pang Lin <glin@suse.com> | 2012-09-26 17:19:27 +0800 |
|---|---|---|
| committer | Gary Ching-Pang Lin <glin@suse.com> | 2012-09-26 17:19:27 +0800 |
| commit | 44423f01a4adf3246a6a90e835925830baab7f84 (patch) | |
| tree | bbe812f9d590167a3a12f4eda603258cfcf25e58 | |
| parent | a4c1e5965f8e135244085cd81f9cbe62f940a08b (diff) | |
| download | efi-boot-shim-44423f01a4adf3246a6a90e835925830baab7f84.tar.gz efi-boot-shim-44423f01a4adf3246a6a90e835925830baab7f84.zip | |
Filter out newline from the password array
| -rw-r--r-- | MokManager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MokManager.c b/MokManager.c index 8685dba6..d609d71d 100644 --- a/MokManager.c +++ b/MokManager.c @@ -481,7 +481,8 @@ static UINT8 get_password (UINT32 *length, CHAR16 *password) key.UnicodeChar != CHAR_BACKSPACE) || key.UnicodeChar == CHAR_NULL || key.UnicodeChar == CHAR_TAB || - key.UnicodeChar == CHAR_LINEFEED) { + key.UnicodeChar == CHAR_LINEFEED || + key.UnicodeChar == CHAR_CARRIAGE_RETURN) { continue; } |
