From 2e4eeb06adc1e6a8a7ded02752ade780ac977200 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 12 Apr 2011 14:22:15 +0000 Subject: libglusterfs: Check for null dereference in statedump Signed-off-by: Vijay Bellur Signed-off-by: Anand Avati 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 --- libglusterfs/src/statedump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libglusterfs') 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); } -- cgit