summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorLassulus <Lassulus@googlemail.com>2011-05-12 15:19:03 +0200
committerLassulus <Lassulus@googlemail.com>2011-05-12 15:19:03 +0200
commit15b9d18a854a48c5a6164c62838bc27aedda7867 (patch)
treee37ff504260b72d3494e4de0dd2f3147b0c4d2ce /hosts
parent38e205fbb785098db307caa1beab32b1e12b60b4 (diff)
fixed auththread crash
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/.scripts/retiolum.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/hosts/.scripts/retiolum.py b/hosts/.scripts/retiolum.py
index f03e0875..044fe5c8 100755
--- a/hosts/.scripts/retiolum.py
+++ b/hosts/.scripts/retiolum.py
@@ -231,12 +231,13 @@ def auththread(netname, hostname, authfifo, sendfifo, timeoutfifo): #manages aut
dec_message = priv_decrypt(netname, curauth[3])
splitmes = dec_message.split("#")
logging.info("auth: checking challenge")
- if splitmes[0] == "" and splitmes[1] == str(authlist[line][2]):
- timeoutfifo.put(["add", curauth[1], curauth[2]])
- del authlist[line]
- logging.info("auth: Stage3 checked, sending now to timeout")
- else:
- logging.error("auth: challenge failed")
+ if splitmes[0] == "":
+ if splitmes[1] == str(authlist[line][2]):
+ timeoutfifo.put(["add", curauth[1], curauth[2]])
+ del authlist[line]
+ logging.info("auth: Stage3 checked, sending now to timeout")
+ else: logging.error("auth: challenge checking failed")
+ else: logging.error("auth: decryption failed")
else:
i = 0