Package: gnupg2 / 2.0.26-6+deb8u2

0042-Remove-incorrect-expression-leading-to-errors.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
30
31
32
33
34
35
From 3d9f8bf1dc0c7165a5d2a31568ed425d2dc3b91e Mon Sep 17 00:00:00 2001
From: Joshua Rogers <git@internot.info>
Date: Sat, 24 Jan 2015 03:03:33 +1100
Subject: [PATCH 42/56] Remove incorrect expression leading to errors.

* scd/ccid-driver.c (send_escape_cmd): Fix setting of 'rc'.
--

Variable 'rc' in send_escape_cmd was overwritten before it was
returned, leading to incorrect computation.

Signed-off-by: Joshua Rogers <git@internot.info>

[Log entry reformatted - wk]
---
 scd/ccid-driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index 6e0bc55..c4c0d9c 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -2266,8 +2266,8 @@ send_escape_cmd (ccid_driver_t handle,
             {
               memcpy (result, msg, msglen);
               *resultlen = msglen;
+              rc = 0;
             }
-          rc = 0;
         }
         break;
       default:
-- 
2.1.4