summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2011-04-12 14:22:15 +0000
committerAnand Avati <avati@gluster.com>2011-04-12 21:50:30 -0700
commit2e4eeb06adc1e6a8a7ded02752ade780ac977200 (patch)
tree75c9f7a7ae6f08b8e6bf38e899453bac3d3e882f /libglusterfs/src
parent10ad4b52e03dbdc3674f49a5d9322f220ea65088 (diff)
libglusterfs: Check for null dereference in statedump
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2731 (coredump when process state dump command is issued immediately after mounting fuse client) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2731
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/statedump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c
index 0fd4013ff..0665f9e1b 100644
--- a/libglusterfs/src/statedump.c
+++ b/libglusterfs/src/statedump.c
@@ -432,7 +432,8 @@ gf_proc_dump_info (int signum)
iobuf_stats_dump (ctx->iobuf_pool);
if (GF_PROC_DUMP_IS_OPTION_ENABLED (callpool))
gf_proc_dump_pending_frames (ctx->pool);
- gf_proc_dump_xlator_info (ctx->active->top);
+ if (ctx->active)
+ gf_proc_dump_xlator_info (ctx->active->top);
}