summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/globals.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-04-22 00:47:19 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-22 02:30:17 -0700
commit3eb79f8704909d118a694d9c41c5b97fa558aa91 (patch)
tree9c60ab978162c04bce27549e5e9f30de2711d9e6 /libglusterfs/src/globals.c
parent1233dad03fb71afe2714ee76476cea75e26aab25 (diff)
core: Set ctx in global_xlator to prevent NULL ptr reference
This results in a crash in STACK_UNWIND after a call bail out. Since the call bail does not occur in the context of an xlator, the old_THIS in STACK_UNWIND is handed a global_xlator which did not have its ctx set, resulting in a NULL de-reference. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 844 (mixed testing with 35 clients) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=844
Diffstat (limited to 'libglusterfs/src/globals.c')
-rw-r--r--libglusterfs/src/globals.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/globals.c b/libglusterfs/src/globals.c
index 68a843b25ef..cdb561de199 100644
--- a/libglusterfs/src/globals.c
+++ b/libglusterfs/src/globals.c
@@ -87,6 +87,7 @@ glusterfs_this_init ()
global_xlator.name = "glusterfs";
global_xlator.type = "global";
+ global_xlator.ctx = glusterfs_ctx;
return ret;
}