summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/protocol/client/src/client-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c
index de7ad5c391b..c33e301e00b 100644
--- a/xlators/protocol/client/src/client-protocol.c
+++ b/xlators/protocol/client/src/client-protocol.c
@@ -5862,7 +5862,7 @@ protocol_client_reopendir (xlator_t *this, client_fd_ctx_t *fdctx)
inode = fdctx->inode;
ret = inode_path (inode, NULL, &path);
- if (ret == -1) {
+ if (ret < 0) {
goto out;
}
@@ -5985,7 +5985,7 @@ protocol_client_reopen (xlator_t *this, client_fd_ctx_t *fdctx)
inode = fdctx->inode;
ret = inode_path (inode, NULL, &path);
- if (ret == -1) {
+ if (ret < 0) {
goto out;
}