[Pkg-gnupg-commit] [gnupg2] 94/159: gpg: Return an error code from keygrip_from_pk.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Jan 27 13:23:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 8fd406c317ad7c2e375ae4f7d20656dadf6d7fcc
Author: Werner Koch <wk at gnupg.org>
Date: Thu Jan 7 19:07:59 2016 +0100
gpg: Return an error code from keygrip_from_pk.
* g10/keyid.c (keygrip_from_pk): Return an error code.
--
The error was show but the function did not return it. This change
should improve error messages for unknown algorithms.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
g10/keyid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/g10/keyid.c b/g10/keyid.c
index 69acbe4..f684276 100644
--- a/g10/keyid.c
+++ b/g10/keyid.c
@@ -883,7 +883,7 @@ keygrip_from_pk (PKT_public_key *pk, unsigned char *array)
}
gcry_sexp_release (s_pkey);
- return 0;
+ return err;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list