1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

2008-08-30 Moritz <moritz@gnu.org>

* scdaemon.c (main): Use estream_asprintf instead of asprintf.
	* command.c (update_reader_status_file): Likewise.
	(cmd_serialno): Use estream_asprintf instead of asprintf
	and xfree instead of free to release memory allocated
	through (estream_)asprintf.
	(cmd_learn): Likewise.
	(pin_cb): Likewise.
	* app-openpgp.c (get_public_key): Likewise.
This commit is contained in:
Moritz Schulte 2008-08-31 11:55:09 +00:00
parent d92f06e882
commit 72110961f1
4 changed files with 32 additions and 21 deletions

View file

@ -1093,9 +1093,9 @@ get_public_key (app_t app, int keyno)
}
hexkeyid = fpr + 24;
ret = asprintf (&command,
"gpg --list-keys --with-colons --with-key-data '%s'",
fpr);
ret = estream_asprintf (&command,
"gpg --list-keys --with-colons --with-key-data '%s'",
fpr);
if (ret < 0)
{
err = gpg_error_from_syserror ();
@ -1103,7 +1103,7 @@ get_public_key (app_t app, int keyno)
}
fp = popen (command, "r");
free (command);
xfree (command);
if (!fp)
{
err = gpg_error_from_syserror ();