summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-protocol.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-09-09 12:18:55 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-13 22:10:31 -0700
commitcf403ff73213bec7ce4781336e89a5bcfd9a167c (patch)
treebb1a1352674ba894d2d71dbb2496c49607bb86b2 /xlators/protocol/server/src/server-protocol.c
parent23f2810c5e750ac7ccf82622740205b7615c852b (diff)
protocol/server: server_stub_resume should check for failure of lookup when oldloc.parent is NULL.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 215 (crash on ib-verbs in 2.0.6-rc4) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=215
Diffstat (limited to 'xlators/protocol/server/src/server-protocol.c')
-rw-r--r--xlators/protocol/server/src/server-protocol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c
index 3bfffd7..d8fafe4 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -2866,7 +2866,8 @@ server_stub_resume (call_stub_t *stub, int32_t op_ret, int32_t op_errno,
case GF_FOP_LINK:
{
- if (stub->args.link.oldloc.inode == NULL) {
+ if ((stub->args.link.oldloc.inode == NULL)
+ || (stub->args.link.oldloc.parent == NULL)) {
if (op_ret < 0) {
gf_log (stub->frame->this->name, GF_LOG_DEBUG,
"%"PRId64": LINK (%s -> %s) on %s returning "