mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
If a drone doesn't exist, treat it as if it's an invalid certificate
This commit is contained in:
parent
ce59a36351
commit
beedfb0600
@ -287,7 +287,8 @@ def handle_connection(connection, cert, request, local=False):
|
||||
return
|
||||
drone = request['name']
|
||||
droneinfo = cfm.get_collective_member(drone)
|
||||
if not util.cert_matches(droneinfo['fingerprint'], cert):
|
||||
if not (droneinfo and util.cert_matches(droneinfo['fingerprint'],
|
||||
cert)):
|
||||
tlvdata.send(connection,
|
||||
{'error': 'Invalid certificate, '
|
||||
'redo invitation process'})
|
||||
|
Loading…
Reference in New Issue
Block a user