aboutsummaryrefslogtreecommitdiff
path: root/cryptech_muxd
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2020-09-02 02:20:54 -0400
committerRob Austein <sra@hactrn.net>2020-09-02 02:20:54 -0400
commit6212a592c52372080c7c5035c6a2513dcb50cf61 (patch)
tree2f378c90d5802b717b1968cc8b963bf30673dc64 /cryptech_muxd
parent9733c5e7faf9aee874c1176381abcda98deb48f9 (diff)
Well of course there had to be one last dumb Python3 string bugpython3
Diffstat (limited to 'cryptech_muxd')
-rwxr-xr-xcryptech_muxd2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptech_muxd b/cryptech_muxd
index bc77a2e..d2fd54e 100755
--- a/cryptech_muxd
+++ b/cryptech_muxd
@@ -383,7 +383,7 @@ class ProbeIOStream(SerialIOStream):
is_cty = any(prompt in response for prompt in (b"Username:", b"Password:", b"cryptech>"))
try:
- is_rpc = response[response.index(SLIP_END + RPC_reply) + len(SLIP_END + RPC_reply) + 4] == SLIP_END
+ is_rpc = response[response.index(SLIP_END + RPC_reply) + len(SLIP_END + RPC_reply) + 4] == SLIP_END[0]
except ValueError:
is_rpc = False
except IndexError: