summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-protocol.c
diff options
context:
space:
mode:
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 3bfffd700..d8fafe43f 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 "