aboutsummaryrefslogtreecommitdiff
path: root/src/prog.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-02-21 17:54:38 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-02-21 17:54:38 +0200
commita9bd91de478ab29fa7bac2093479a1ccee1bbd87 (patch)
treea637b7c5a9de5905e6cc134ff3d29862ca2a83d0 /src/prog.h
parent910b8cf881052050c0edade38d0f9de8cdacf3c6 (diff)
downloadpies-a9bd91de478ab29fa7bac2093479a1ccee1bbd87.tar.gz
pies-a9bd91de478ab29fa7bac2093479a1ccee1bbd87.tar.bz2
Fix dereferencing of freed memory.
Improper dereferencing occurred when trying to access master prog of a redirector. * src/prog.h (prog) <r.comp>: New member. * src/progman.c (destroy_prog) <TYPE_COMPONENT>: Clear master pointers in both redirectors. <TYPE_REDIRECTOR>: Check if master is NULL. (register_redir): Initialize r.comp.
Diffstat (limited to 'src/prog.h')
-rw-r--r--src/prog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prog.h b/src/prog.h
index 4e86596..3358885 100644
--- a/src/prog.h
+++ b/src/prog.h
@@ -68,12 +68,13 @@ struct prog
struct conn_class *cclass;
} p;
struct
{
char *tag;
+ struct component *comp;
struct prog *master;
} r;
struct
{
char *tag;

Return to:

Send suggestions and report system problems to the System administrator.