projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27159f2
)
instance: avoid dumping invalid service instances - prevents a potential crash
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 19 Apr 2015 15:14:59 +0000
(17:14 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 19 Apr 2015 15:15:06 +0000
(17:15 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
service/instance.c
patch
|
blob
|
history
diff --git
a/service/instance.c
b/service/instance.c
index f5b61fa42c626bde52c11d80455235b9d47a44b1..1fb65fa04d9343b2606cd0dd5975d490b72c8c58 100644
(file)
--- a/
service/instance.c
+++ b/
service/instance.c
@@
-871,6
+871,9
@@
void instance_dump(struct blob_buf *b, struct service_instance *in, int verbose)
{
void *i;
+ if (!in->valid)
+ return;
+
i = blobmsg_open_table(b, in->name);
blobmsg_add_u8(b, "running", in->proc.pending);
if (in->proc.pending)