1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Fix bug 1186

This commit is contained in:
Werner Koch 2010-02-17 10:28:27 +00:00
parent f0ba5805e4
commit 9529d72b2c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-02-17 Werner Koch <wk@g10code.com>
* keygen.c (ask_user_id): Avoid infinite loop in case of invalid
data. Fixes bug#1186.
2010-02-02 Werner Koch <wk@g10code.com>
* card-util.c (card_edit): Change prompt to "gpg/card".

View File

@ -1927,7 +1927,7 @@ ask_user_id( int mode )
if( strlen(ansstr) != 10 )
BUG();
if( cpr_enabled() ) {
answer = xstrdup(ansstr+6);
answer = xstrdup (ansstr + (fail?8:6));
answer[1] = 0;
}
else {