summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-03 03:43:06 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-03-04 00:40:53 -0800
commit568d4027033a5cb89d6aaee757d4c71e5369fe25 (patch)
treeb1c65015b67100e169e6e3f4b13f455ad72f5b00 /xlators
parentdae57d72a58ff61fe6eda800d386bf83574ef5c2 (diff)
glusterd: handle a crash in dump_version_cbk (in handshake)
reset 'frame->local' to NULL before STACK_DESTROY(), which prevents freeing of valid 'peerctx' pointer. Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2485 ([glusterfs-3.1.3qa2]: Core generated due to SegFault in glusterd_rpc_notify) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2485
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handshake.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c
index 593add795af..c3af04b2a78 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handshake.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c
@@ -389,6 +389,7 @@ out:
}
}
+ frame->local = NULL;
STACK_DESTROY (frame->root);
if (ret != 0)