projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36dba9c
)
proto-shell: fix potential use-after-free
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 19 Mar 2012 19:07:12 +0000
(20:07 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 19 Mar 2012 19:07:12 +0000
(20:07 +0100)
proto-shell.c
patch
|
blob
|
history
diff --git
a/proto-shell.c
b/proto-shell.c
index 492d0e4a8b8aa15e7034db3bc445938133ba4f1d..2239b496e2216baec10c498e80eddb4ae7909d19 100644
(file)
--- 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);
}