1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-27 19:04:15 +01:00

Fixed unassigned variable issuse on failed listeners

This commit is contained in:
Caleb Stewart 2021-06-19 20:41:58 -04:00
parent 80174614d2
commit 841e24b9de

View File

@ -272,6 +272,8 @@ class Listener(threading.Thread):
to trip up the manager, as this is running in a background thread."""
try:
raw_server = None
server = None
# Start the listener and wrap in the SSL context
raw_server = self._open_socket()