aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-01-17 17:16:52 +0100
committervanhauser-thc <vh@thc.org>2022-01-17 17:16:58 +0100
commitc8061e5b3531498df94524900bcb5e1c6cf8bb59 (patch)
tree8f9fdbf6a5eb6c17a845a375971a395cb48097e8
parent2b82492457061e8e3be2ecff2288b6a310220047 (diff)
downloadafl++-c8061e5b3531498df94524900bcb5e1c6cf8bb59.tar.gz
fix nyx -M
-rw-r--r--src/afl-fuzz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 1030dfdf..207a46af 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1322,7 +1322,7 @@ int main(int argc, char **argv_orig, char **envp) {
if (afl->fsrv.nyx_mode) {
if (afl->fsrv.nyx_standalone &&
- strncmp(afl->sync_id, "default", strlen("default")) != 0) {
+ strcmp(afl->sync_id, "default") != 0) {
FATAL(
"distributed fuzzing is not supported in this Nyx mode (use -Y "
@@ -1334,7 +1334,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 "