diff options
| -rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 50307eb10c4..9c5b9006b04 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -1352,6 +1352,9 @@ dht_readlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this,          dht_local_t *local = NULL;          local = frame->local; +        if (op_ret == -1) +                goto err; +          if (local) {                  sbuf->st_ino = local->st_ino;          } else { @@ -1359,6 +1362,7 @@ dht_readlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this,                  op_errno = EINVAL;          } +err:          DHT_STACK_UNWIND (readlink, frame, op_ret, op_errno, path, sbuf);          return 0;  | 
