mirror of
https://github.com/jtesta/ssh-audit.git
synced 2026-07-18 08:42:53 +02:00
Fixed a perhaps rare crash during rate testing. (#367)
This commit is contained in:
@@ -324,7 +324,8 @@ class DHEat:
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
del socket_dict[s]
|
||||
if s in socket_dict:
|
||||
del socket_dict[s]
|
||||
|
||||
# Check if this platform has socket.AF_UNIX. Windows does not.
|
||||
has_af_unix = hasattr(socket, 'AF_UNIX')
|
||||
|
||||
Reference in New Issue
Block a user