2008-03-06 Marcus Brinkmann <marcus@g10code.de>

* key.c (_gpgme_key_add_sig): Terminate UID in case SRC is NULL.
	Reported by Marc Mutz.
This commit is contained in:
Marcus Brinkmann 2008-03-06 14:54:11 +00:00
parent 95a12bd084
commit 27fccc3f01
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-06 Marcus Brinkmann <marcus@g10code.de>
* key.c (_gpgme_key_add_sig): Terminate UID in case SRC is NULL.
Reported by Marc Mutz.
2008-03-05 Marcus Brinkmann <marcus@g10code.de>
* decrypt.c (release_op_data): Release OPD->result.recipients.

View File

@ -275,6 +275,8 @@ _gpgme_key_add_sig (gpgme_key_t key, char *src)
parse_user_id (sig->uid, &sig->name, &sig->email,
&sig->comment, dst);
}
else
sig->uid = '\0';
if (!uid->signatures)
uid->signatures = sig;