From 33c0e98761c122cb20ccd09adb4ef7e50abee49b Mon Sep 17 00:00:00 2001 From: David Shaw Date: Tue, 26 Aug 2003 00:20:53 +0000 Subject: [PATCH] * keyedit.c (change_passphrase): When responding 'no' to the blank passphrase question, re-prompt for a new passphrase. This is bug #202. --- g10/ChangeLog | 6 ++++++ g10/keyedit.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/g10/ChangeLog b/g10/ChangeLog index b8b55a184..022709b1e 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,9 @@ +2003-08-25 David Shaw + + * keyedit.c (change_passphrase): When responding 'no' to the blank + passphrase question, re-prompt for a new passphrase. This is bug + #202. + 2003-08-21 Werner Koch * keyserver.c (keyserver_search_prompt): Flush stdout before diff --git a/g10/keyedit.c b/g10/keyedit.c index 3f1add74e..2529425be 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -870,8 +870,10 @@ change_passphrase( KBNODE keyblock ) " this is probably a *bad* idea!\n\n")); if( cpr_get_answer_is_yes("change_passwd.empty.okay", _("Do you really want to do this? "))) + { changed++; - break; + break; + } } else { /* okay */ rc = 0;