Przeglądaj źródła

Return None as filepath if no packets were injected

dustin.born 6 lat temu
rodzic
commit
95a65b2200
1 zmienionych plików z 1 dodań i 1 usunięć
  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