Fix check for incomplete packet
diff --git a/src/python/oftest/controller.py b/src/python/oftest/controller.py
index 4251913..92bec56 100644
--- a/src/python/oftest/controller.py
+++ b/src/python/oftest/controller.py
@@ -166,7 +166,7 @@
                 return
 
             # Extract the raw message bytes
-            if (offset + hdr.length) > len( pkt[offset:]):
+            if (offset + hdr.length) > len(pkt):
                 break
             rawmsg = pkt[offset : offset + hdr.length]