better cmp map fsrv fix

This commit is contained in:
van Hauser
2021-01-20 10:01:34 +01:00
parent e7b572af36
commit 9dff3495d5
3 changed files with 5 additions and 15 deletions

View File

@ -1515,21 +1515,7 @@ int main(int argc, char **argv_orig, char **envp) {
}
u8 *save_env = NULL;
if (afl->cmplog_binary) {
save_env = ck_strdup(getenv(CMPLOG_SHM_ENV_VAR));
unsetenv(CMPLOG_SHM_ENV_VAR); // normal forkserver should not have this
}
perform_dry_run(afl);
if (save_env) {
setenv(CMPLOG_SHM_ENV_VAR, save_env, 1); // needed for at_exit()
ck_free(save_env);
}
/*
if (!user_set_cache && afl->q_testcase_max_cache_size) {