[PATCH] Remove incorrect expression leading to errors.

Joshua Rogers git at internot.info
Fri Jan 23 17:03:33 CET 2015


* scd/ccid-driver.c: Variable 'rc' in send_escape_cmd was
overwritten before it was returned, leading to incorrect
computation.

--

Signed-off-by: Joshua Rogers <git at internot.info>
---
 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 7a91e09..fdfe1f5 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -2230,8 +2230,8 @@ send_escape_cmd (ccid_driver_t handle,
             {
               memcpy (result, msg, msglen);
               *resultlen = msglen;
+              rc = 0;
             }
-          rc = 0;
         }
         break;
       default:
-- 
1.9.1




More information about the Gnupg-devel mailing list