Просмотр исходного кода

mdns: Minor correction of the test code

David Cermak 4 лет назад
Родитель
Сommit
355e152082
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      components/mdns/test_afl_fuzz_host/test.c

+ 1 - 3
components/mdns/test_afl_fuzz_host/test.c

@@ -204,9 +204,7 @@ int main(int argc, char** argv)
         //
         // Note: parameter1 is a file (mangled packet) which caused the crash
         file = fopen(argv[1], "r");
-        if (file) {
-            len = fread(buf, 1, 1460, file);
-        }
+        assert(file >= 0 );
         fclose(file);
     }