summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-12-16 19:09:16 +0000
committerVijay Bellur <vijay@dev.gluster.com>2009-12-17 08:41:04 -0800
commitcfe095763c4ec59026467e3b76a92c61c18f0792 (patch)
treef76b2007bf6e3f0180f1c7158fb897a9bbc09444
parentb64d55a5b879812ff01f749a609238316031f332 (diff)
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 <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 483 (booster unfsd segfault) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=483
-rw-r--r--libglusterfs/src/call-stub.c4
1 files changed, 2 insertions, 2 deletions
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;