diff options
author | hexcoder- <heiko@hexco.de> | 2020-12-12 13:26:25 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-12-12 13:26:25 +0100 |
commit | e4a113b953e0b746cffa47e24ad52f18733217bc (patch) | |
tree | 0aca6bda9640a650bc7da13957761a2faaab6278 /src/afl-sharedmem.c | |
parent | 7f50aa26dbe7a2832b377793be4069207e6b0dc1 (diff) | |
download | afl++-e4a113b953e0b746cffa47e24ad52f18733217bc.tar.gz |
small fix in error handling
Diffstat (limited to 'src/afl-sharedmem.c')
-rw-r--r-- | src/afl-sharedmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-sharedmem.c b/src/afl-sharedmem.c index 3e671df5..fe641d0d 100644 --- a/src/afl-sharedmem.c +++ b/src/afl-sharedmem.c @@ -205,7 +205,7 @@ u8 *afl_shm_init(sharedmem_t *shm, size_t map_size, /* map the shared memory segment to the address space of the process */ shm->cmp_map = mmap(0, map_size, PROT_READ | PROT_WRITE, MAP_SHARED, shm->cmplog_g_shm_fd, 0); - if (shm->map == MAP_FAILED) { + if (shm->cmp_map == MAP_FAILED) { close(shm->cmplog_g_shm_fd); shm->cmplog_g_shm_fd = -1; |