summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol')
-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 09b35c44f03..9306a9232bd 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -2837,7 +2837,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 "