Skip to content

Commit 20f5501

Browse files
committed
Restore correct request parsing machinery path
1 parent b5fac9e commit 20f5501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/enip/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def enip_srv_udp( conn, name, enip_process, **kwds ):
635635
# Exception (dfa exits in non-terminal state). Build data.request.enip:
636636
begun = misc.timer() # waiting for next transaction
637637
addr,stats = None,None
638-
with contextlib.closing( machine.run( source=source, data=data.request )) as engine:
638+
with contextlib.closing( machine.run( path='request', source=source, data=data )) as engine:
639639
for mch,sta in engine:
640640
if sta is not None:
641641
# No more transitions available. Wait for input.
@@ -736,7 +736,7 @@ def enip_srv_tcp( conn, addr, name, enip_process, delay=None, **kwds ):
736736
# If no/partial EtherNet/IP header received, parsing will fail with a NonTerminal
737737
# Exception (dfa exits in non-terminal state). Build data.request.enip:
738738
begun = misc.timer()
739-
with contextlib.closing( machine.run( source=source, data=data.request )) as engine:
739+
with contextlib.closing( machine.run( path='request', source=source, data=data )) as engine:
740740
for mch,sta in engine:
741741
if sta is not None:
742742
continue

0 commit comments

Comments
 (0)