Skip to content

Commit

Permalink
Correction of pipe and port array index
Browse files Browse the repository at this point in the history
  • Loading branch information
helviojunior committed Aug 31, 2018
1 parent df661da commit 8402f17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions send_and_execute.py
Expand Up @@ -1062,11 +1062,11 @@ def service_exec(conn, cmd):
target = sys.argv[1]
lfile = sys.argv[2]
port = 445
pipe_name = None if len(sys.argv) < 5 else sys.argv[5]
pipe_name = None if len(sys.argv) < 5 else sys.argv[4]

try:
if sys.argv[4] != '':
port = int(sys.argv[4])
if sys.argv[3] != '':
port = int(sys.argv[3])
except:
pass

Expand Down

0 comments on commit 8402f17

Please sign in to comment.