aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2015-11-17 17:05:51 +0000
committerNIIBE Yutaka <[email protected]>2016-11-29 08:06:28 +0000
commitd87699597f4b47968902324c90beb3f3c51ff1d7 (patch)
tree59a7dede686953415a9bf4bfe27d33a4abcb21db
parentscd: Fix error handling with libusb-compat library. (diff)
downloadgnupg-d87699597f4b47968902324c90beb3f3c51ff1d7.tar.gz
gnupg-d87699597f4b47968902324c90beb3f3c51ff1d7.zip
scd: Improve error handling.
* scd/app-openpgp.c (get_public_key): Improve error handling. -- Backport master commit: 6a37b45a7f13cf5d2ae7d6c9cd796a4bd197b80d Found using the Clang Static Analyzer. Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--scd/app-openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 291700fc7..59ccd6d9b 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1362,7 +1362,7 @@ get_public_key (app_t app, int keyno)
xfree (buffer);
xfree (mbuf);
xfree (ebuf);
- return 0;
+ return err;
}
#endif /* GNUPG_MAJOR_VERSION > 1 */