mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
gpg: Fix glitch entering a full expiration time.
* g10/keygen.c (ask_expire_interval): Get the current time after the prompt. -- This almost avoid that an entered full ISO timestamp is not used as given but off by the time the user required to enter the timestamp. GnuPG-bug-id: 1639
This commit is contained in:
parent
4aeb02562c
commit
b2945c451d
@ -2302,7 +2302,7 @@ ask_expire_interval(int object,const char *def_expire)
|
||||
answer = NULL;
|
||||
for(;;)
|
||||
{
|
||||
u32 curtime=make_timestamp();
|
||||
u32 curtime;
|
||||
|
||||
xfree(answer);
|
||||
if(object==0)
|
||||
@ -2326,6 +2326,7 @@ ask_expire_interval(int object,const char *def_expire)
|
||||
}
|
||||
cpr_kill_prompt();
|
||||
trim_spaces(answer);
|
||||
curtime = make_timestamp ();
|
||||
interval = parse_expire_string( answer );
|
||||
if( interval == (u32)-1 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user