about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-10-19 15:20:59 +0200
committervanhauser-thc <vh@thc.org>2021-10-19 15:20:59 +0200
commit90786e2ce9970c52e661c0fe290cb78a1a063004 (patch)
tree5fcc7b3d1864c26c383cae6e3d34858ef9f5a641 /src
parent0bc3367b55b2f08c7c2588576af27567044dc0b6 (diff)
downloadafl++-90786e2ce9970c52e661c0fe290cb78a1a063004.tar.gz
fix
Diffstat (limited to 'src')
-rw-r--r--src/afl-forkserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c
index 94ca3009..71667262 100644
--- a/src/afl-forkserver.c
+++ b/src/afl-forkserver.c
@@ -1260,11 +1260,11 @@ fsrv_run_result_t afl_fsrv_run_target(afl_forkserver_t *fsrv, u32 timeout,
     /* If there was no response from forkserver after timeout seconds,
     we kill the child. The forkserver should inform us afterwards */
 
-    s32 tmp_pid = srv->child_pid;
+    s32 tmp_pid = fsrv->child_pid;
     if (tmp_pid > 0) {
 
       kill(tmp_pid, fsrv->kill_signal);
-      fsrv->child_pid = -1
+      fsrv->child_pid = -1;
 
     }