Skip to content

Commit 07dbb33

Browse files
author
iamdbg
committed
Assign local variable 'os' before referencing
Patch for error in enum_shares: local variable 'os' referenced before assignment.
1 parent c65bee2 commit 07dbb33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

credcrack.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def enum_shares(q, username, password, domain):
123123
try:
124124
while True:
125125
with lock:
126+
os = ""
126127
shares, endshares = [], []
127128
rhost = q.get()
128129

0 commit comments

Comments
 (0)