aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/nifs
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-04-19 11:24:35 +0200
committerLukas Larsson <[email protected]>2016-04-26 16:02:44 +0200
commit0547610c0bd1fb0de4352fc8322094722145d9d1 (patch)
treee12ad93a1e9f1185f327e79fac5b951d7f9d5148 /erts/emulator/nifs
parent071f9bba246684d401260a2729b8d72bbbfa1874 (diff)
downloadotp-0547610c0bd1fb0de4352fc8322094722145d9d1.tar.gz
otp-0547610c0bd1fb0de4352fc8322094722145d9d1.tar.bz2
otp-0547610c0bd1fb0de4352fc8322094722145d9d1.zip
erts: Remove erl_tracer with invalid state
Diffstat (limited to 'erts/emulator/nifs')
-rw-r--r--erts/emulator/nifs/common/erl_tracer_nif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/nifs/common/erl_tracer_nif.c b/erts/emulator/nifs/common/erl_tracer_nif.c
index a1e0e581a4..b1c8d0b7a1 100644
--- a/erts/emulator/nifs/common/erl_tracer_nif.c
+++ b/erts/emulator/nifs/common/erl_tracer_nif.c
@@ -124,6 +124,9 @@ static ERL_NIF_TERM enabled(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
if (!enif_is_port_alive(env, &to_port))
/* tracer is dead so we should remove this trace point */
return atom_remove;
+ } else {
+ /* The state was not a pid or a port */
+ return atom_remove;
}
/* Only generate trace for when tracer != tracee */