From cfe095763c4ec59026467e3b76a92c61c18f0792 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 16 Dec 2009 19:09:16 +0000 Subject: bug fixes in call-stub creation for {fsetattr, fxattrop}_cbk() 'wind' flag was set in case of 'unwind' stubs, causing wrong variables to get free'd, causing process to segfault. Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 483 (booster unfsd segfault) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=483 --- libglusterfs/src/call-stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c index 04d49a1e39e..80b7f12ac9b 100644 --- a/libglusterfs/src/call-stub.c +++ b/libglusterfs/src/call-stub.c @@ -2075,7 +2075,7 @@ fop_fxattrop_cbk_stub (call_frame_t *frame, call_stub_t *stub = NULL; GF_VALIDATE_OR_GOTO ("call-stub", frame, out); - stub = stub_new (frame, 1, GF_FOP_FXATTROP); + stub = stub_new (frame, 0, GF_FOP_FXATTROP); stub->args.fxattrop_cbk.fn = fn; stub->args.fxattrop_cbk.op_ret = op_ret; stub->args.fxattrop_cbk.op_errno = op_errno; @@ -2268,7 +2268,7 @@ fop_fsetattr_cbk_stub (call_frame_t *frame, if (frame == NULL) goto out; - stub = stub_new (frame, 1, GF_FOP_FSETATTR); + stub = stub_new (frame, 0, GF_FOP_FSETATTR); if (stub == NULL) goto out; -- cgit