Skip to content

Commit 93e6efe

Browse files
mdns: Minor correction of the test code
* Original commit: espressif/esp-idf@7d76245
1 parent bc4cda8 commit 93e6efe

File tree

1 file changed

+1
-3
lines changed
  • components/mdns/test_afl_fuzz_host

1 file changed

+1
-3
lines changed

components/mdns/test_afl_fuzz_host/test.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ int main(int argc, char** argv)
204204
//
205205
// Note: parameter1 is a file (mangled packet) which caused the crash
206206
file = fopen(argv[1], "r");
207-
if (file) {
208-
len = fread(buf, 1, 1460, file);
209-
}
207+
assert(file >= 0 );
210208
fclose(file);
211209
}
212210

0 commit comments

Comments
 (0)