diff options
author | van Hauser <vh@thc.org> | 2024-08-07 12:28:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-07 12:28:08 +0200 |
commit | 4f35c303715a53fb742c450d9092d11fcf2653fc (patch) | |
tree | f566f20aba97b735f35211be95a08418ba16f2a1 /src | |
parent | 614c5127caf3250af6f20ad29bb8cb96b8444408 (diff) | |
parent | 9df906454935134b68ec330e7fddddf6f6987d96 (diff) | |
download | afl++-4f35c303715a53fb742c450d9092d11fcf2653fc.tar.gz |
Merge pull request #2181 from tchebb/fix-no-zlib
Fix syntax error when compiling without zlib
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 9867eba3..1546597e 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -2237,7 +2237,6 @@ int main(int argc, char **argv_orig, char **envp) { snprintf(fn, PATH_MAX, "%s/fastresume.bin", afl->out_dir); #ifdef HAVE_ZLIB if ((fr_fd = ZLIBOPEN(fn, "rb")) != NULL) { - #else if ((fr_fd = open(fn, O_RDONLY)) >= 0) { @@ -3341,9 +3340,9 @@ stop_fuzzing: ACTF("Writing %s ...", fr); #ifdef HAVE_ZLIB if ((fr_fd = ZLIBOPEN(fr, "wb9")) != NULL) { - #else if ((fr_fd = open(fr, O_WRONLY | O_TRUNC | O_CREAT, DEFAULT_PERMISSION)) >= + 0) { #endif u8 ver_string[8]; |