[Pkg-gnupg-commit] [gnupg2] 224/241: scd: Fix for removing the prefix.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Dec 9 20:32:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit f03976f1101f539a2782cd9e87d640fc32a022db
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Dec 4 14:37:05 2015 +0900
scd: Fix for removing the prefix.
* scd/app-openopg.c (do_decipher): Fix the condition.
---
scd/app-openpgp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index d204740..581c5dd 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -4179,7 +4179,7 @@ do_decipher (app_t app, const char *keyidstr,
if (app->app_local->keyattr[1].ecc.flags)
{
- if (indatalen > 32 + 1)
+ if (indatalen > 32 && (indatalen % 2))
{ /*
* Skip the prefix. It may be 0x40 (in new format), or MPI
* head of 0x00 (in old format).
--
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