diff options
author | van Hauser <vh@thc.org> | 2022-01-20 16:17:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 16:17:08 +0100 |
commit | 7aced239e8a0855d87ecc921ba5691b29202ec1e (patch) | |
tree | a8e877a149495ea4ec48723d8af57426f8322a3a /src/afl-fuzz.c | |
parent | 9242e0db8ac8a0e82d78432af389108e74700f00 (diff) | |
parent | d1de12d6175cd84357eadbf204e15b184b22ae42 (diff) | |
download | afl++-7aced239e8a0855d87ecc921ba5691b29202ec1e.tar.gz |
Merge pull request #1294 from AFLplusplus/dev
Push to stable
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 1030dfdf..1edf82f4 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -1321,8 +1321,7 @@ int main(int argc, char **argv_orig, char **envp) { #ifdef __linux__ if (afl->fsrv.nyx_mode) { - if (afl->fsrv.nyx_standalone && - strncmp(afl->sync_id, "default", strlen("default")) != 0) { + if (afl->fsrv.nyx_standalone && strcmp(afl->sync_id, "default") != 0) { FATAL( "distributed fuzzing is not supported in this Nyx mode (use -Y " @@ -1334,7 +1333,7 @@ int main(int argc, char **argv_orig, char **envp) { if (afl->is_main_node) { - if (strncmp("0", afl->sync_id, strlen("0") != 0)) { + if (strcmp("0", afl->sync_id) != 0) { FATAL( "for Nyx -Y mode, the Main (-M) parameter has to be set to 0 (-M " |