From b4bda4807b2dd3a49ee4ee64dd3fed7bc9107d01 Mon Sep 17 00:00:00 2001 From: Lassulus Date: Thu, 12 May 2011 15:19:03 +0200 Subject: fixed auththread crash --- retiolum/hosts/.scripts/retiolum.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'retiolum/hosts') diff --git a/retiolum/hosts/.scripts/retiolum.py b/retiolum/hosts/.scripts/retiolum.py index f03e0875..044fe5c8 100755 --- a/retiolum/hosts/.scripts/retiolum.py +++ b/retiolum/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 -- cgit v1.2.3