[Cryptech-Commits] [sw/stm32] branch python3 updated: Well of course there had to be one last dumb Python3 string bug

git at cryptech.is git at cryptech.is
Wed Sep 2 06:18:33 UTC 2020


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch python3
in repository sw/stm32.

The following commit(s) were added to refs/heads/python3 by this push:
     new 314ba09  Well of course there had to be one last dumb Python3 string bug
314ba09 is described below

commit 314ba09b1447ec20c7ffad587691c83b965e7400
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Wed Sep 2 02:21:01 2020 -0400

    Well of course there had to be one last dumb Python3 string bug
---
 projects/hsm/cryptech_probe | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projects/hsm/cryptech_probe b/projects/hsm/cryptech_probe
index 84359b7..356931a 100755
--- a/projects/hsm/cryptech_probe
+++ b/projects/hsm/cryptech_probe
@@ -125,7 +125,7 @@ for port in ports:
     # characters live, but it will do for the moment.
 
     try:
-        is_hsm = response[response.index(SLIP_END + RPC_reply) + len(SLIP_END + RPC_reply) + 4] == SLIP_END
+        is_hsm = response[response.index(SLIP_END + RPC_reply) + len(SLIP_END + RPC_reply) + 4] == SLIP_END[0]
     except ValueError:
         is_hsm = False
     except IndexError:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list