mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-12 21:58:50 +01:00
* keyedit.c (menu_addrevoker): Fix leaking a few bytes.
This commit is contained in:
parent
2f2fba641b
commit
eb5309d0bc
@ -1,3 +1,7 @@
|
||||
2003-08-30 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* keyedit.c (menu_addrevoker): Fix leaking a few bytes.
|
||||
|
||||
2003-08-28 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpgv.c: s/__MINGW32__/_WIN32/ to help building on native Windows
|
||||
|
@ -2474,16 +2474,22 @@ menu_addrevoker( KBNODE pub_keyblock, KBNODE sec_keyblock, int sensitive )
|
||||
answer=cpr_get_utf8("keyedit.add_revoker",
|
||||
_("Enter the user ID of the designated revoker: "));
|
||||
if(answer[0]=='\0' || answer[0]=='\004')
|
||||
goto fail;
|
||||
{
|
||||
m_free(answer);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
rc=get_pubkey_byname(revoker_pk,answer,NULL,NULL,1);
|
||||
|
||||
if(rc)
|
||||
{
|
||||
log_error (_("key `%s' not found: %s\n"),answer,g10_errstr(rc));
|
||||
m_free(answer);
|
||||
continue;
|
||||
}
|
||||
|
||||
m_free(answer);
|
||||
|
||||
fingerprint_from_pk(revoker_pk,revkey.fpr,&fprlen);
|
||||
if(fprlen!=20)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user