Package: gnupg / 1.4.18-7+deb8u5

0021-scd-Fix-possibly-inhibited-checkpin-of-the-admin-pin.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From c83e250ef36c28a275de74d96e89898e9f99cb1e Mon Sep 17 00:00:00 2001
From: Werner Koch <wk@gnupg.org>
Date: Fri, 12 Dec 2014 20:08:45 +0100
Subject: [PATCH 21/45] scd: Fix possibly inhibited checkpin of the admin pin.

* scd/app-openpgp.c (do_check_pin): Do not check a byte of a released
buffer.

Signed-off-by: Werner Koch <wk@gnupg.org>
---
 g10/app-openpgp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/app-openpgp.c b/g10/app-openpgp.c
index b51d418..c3b4fae 100644
--- a/g10/app-openpgp.c
+++ b/g10/app-openpgp.c
@@ -3497,7 +3497,7 @@ do_check_pin (app_t app, const char *keyidstr,
           log_info (_("card is permanently locked!\n"));
           return gpg_error (GPG_ERR_BAD_PIN);
         }
-      else if (value[6] < 3)
+      else if (count < 3)
         {
           log_info (_("verification of Admin PIN is currently prohibited "
                       "through this command\n"));
-- 
2.1.4