diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-19 20:07:12 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-19 20:07:12 +0100 |
commit | 889a60c26de78b288fb16a9c17db4a248e958fbd (patch) | |
tree | 8903fe78e2263c8e88227dbaa23099c64db85e79 /proto-shell.c | |
parent | 36dba9c4a9aee236928459d3d38fd08e5924259b (diff) |
proto-shell: fix potential use-after-free
Diffstat (limited to 'proto-shell.c')
-rw-r--r-- | proto-shell.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proto-shell.c b/proto-shell.c index 492d0e4..2239b49 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -201,6 +201,8 @@ proto_shell_free(struct interface_proto_state *proto) struct proto_shell_state *state; state = container_of(proto, struct proto_shell_state, proto); + netifd_kill_process(&state->script_task); + netifd_kill_process(&state->proto_task); free(state->config); free(state); } |