浏览代码

Return None as filepath if no packets were injected

dustin.born 6 年之前
父节点
当前提交
95a65b2200
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/Attack/MembersMgmtCommAttack.py

+ 1 - 1
code/Attack/MembersMgmtCommAttack.py

@@ -187,7 +187,7 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
         messages = self._create_messages()
 
         if messages == []:
-            return 0, []
+            return 0, None
 
         # Setup (initial) parameters for packet creation loop
         BUFFER_SIZE = 1000