Skip to content

Commit

Permalink
Merge branch 'fix/field-instead-of-global' into 'master'
Browse files Browse the repository at this point in the history
fix: use field instead of global variable

See merge request openconnect/openconnect!172
  • Loading branch information
dlenski committed Mar 9, 2021
2 parents 2dd0cba + ef68c08 commit ab2583e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trojans/tncc-emulate.py
Expand Up @@ -596,7 +596,7 @@ def __init__(self, s, t):
self.tncc = t

def process_cmd(self):
buf = sock.recv(1024).decode('ascii')
buf = self.sock.recv(1024).decode('ascii')
if not len(buf):
sys.exit(0)
cmd, buf = buf.split('\n', 1)
Expand All @@ -612,7 +612,7 @@ def process_cmd(self):
resp = ['200', '3', cookie.value]
if self.tncc.interval is not None:
resp.append(str(self.tncc.interval))
sock.send(('\n'.join(resp) + '\n\n').encode('ascii'))
self.sock.send(('\n'.join(resp) + '\n\n').encode('ascii'))
elif cmd == 'setcookie':
cookie = self.tncc.get_cookie(args['Cookie'],
self.tncc.find_cookie('DSSIGNIN'))
Expand Down

0 comments on commit ab2583e

Please sign in to comment.