From d55c4297aa946a0f1574130b24adb4c92f19e435 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Wed, 1 Apr 2009 21:17:57 -0400 Subject: [PATCH] Loop over do_save_getpin() when GPG_ERR_INV_PASSPHRASE is returned. This is the same behavior as the other save methods. --- src/libpwmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libpwmd.c b/src/libpwmd.c index 89ff029d..056818e4 100644 --- a/src/libpwmd.c +++ b/src/libpwmd.c @@ -2105,7 +2105,9 @@ static gpg_error_t do_pwmd_save(pwm_t *pwm, int nb) return 0; } - rc = do_save_getpin(pwm, &password); + do { + rc = do_save_getpin(pwm, &password); + } while (rc == GPG_ERR_INV_PASSPHRASE); if (rc) return rc; -- 2.11.4.GIT