diff options
author | Justus Winter <[email protected]> | 2015-11-17 17:05:51 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2015-11-19 14:46:29 +0000 |
commit | 6a37b45a7f13cf5d2ae7d6c9cd796a4bd197b80d (patch) | |
tree | 5d711e5d155eb29e60f6e1efa47de57c7f035ef7 | |
parent | dirmngr: Fix typo. (diff) | |
download | gnupg-6a37b45a7f13cf5d2ae7d6c9cd796a4bd197b80d.tar.gz gnupg-6a37b45a7f13cf5d2ae7d6c9cd796a4bd197b80d.zip |
scd: Improve error handling.
* scd/app-openpgp.c (get_public_key): Improve error handling.
--
Found using the Clang Static Analyzer.
Signed-off-by: Justus Winter <[email protected]>
-rw-r--r-- | scd/app-openpgp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index a7601b847..0fcfffe0b 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -1468,7 +1468,7 @@ get_public_key (app_t app, int keyno) xfree (buffer); xfree (mbuf); xfree (ebuf); - return 0; + return err; } #endif /* GNUPG_MAJOR_VERSION > 1 */ |