diff options
author | Moritz Schulte <[email protected]> | 2008-08-31 11:55:09 +0000 |
---|---|---|
committer | Moritz Schulte <[email protected]> | 2008-08-31 11:55:09 +0000 |
commit | 72110961f1a411863cd833877b960581fe38a428 (patch) | |
tree | 04999e19053c29bc5b05aedcba9562fce3e723cc /scd/app-openpgp.c | |
parent | Add a warning nite to --throw-keyds. (diff) | |
download | gnupg-72110961f1a411863cd833877b960581fe38a428.tar.gz gnupg-72110961f1a411863cd833877b960581fe38a428.zip |
2008-08-30 Moritz <[email protected]>
* 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.
Diffstat (limited to '')
-rw-r--r-- | scd/app-openpgp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 553d2fe8c..1750668f4 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -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 (); |