Bug fix for installations transitioning to autorun code with old database.
parent
9d9389d0a1
commit
d03cecbc37
|
@ -1401,7 +1401,7 @@ class Agents:
|
|||
|
||||
# if a script autorun is set, set that as the agent's first tasking
|
||||
autorun = self.get_autoruns()
|
||||
if autorun[0] != '' and autorun[1] != '':
|
||||
if autorun and autorun[0] != '' and autorun[1] != '':
|
||||
self.add_agent_task(sessionID, autorun[0], autorun[1])
|
||||
|
||||
return(200, encryptedAgent)
|
||||
|
|
Loading…
Reference in New Issue