summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libappfuse')
-rw-r--r--libappfuse/FuseBuffer.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libappfuse/FuseBuffer.cc b/libappfuse/FuseBuffer.cc
index fd69849a7..653e96b28 100644
--- a/libappfuse/FuseBuffer.cc
+++ b/libappfuse/FuseBuffer.cc
@@ -119,7 +119,12 @@ ResultOrAgain WriteInternal(const FuseMessage<T>* self, int fd, int sockflag, co
119 return ResultOrAgain::kFailure; 119 return ResultOrAgain::kFailure;
120 } 120 }
121 } 121 }
122 CHECK(static_cast<uint32_t>(result) == header.len); 122
123 if (static_cast<unsigned int>(result) != header.len) {
124 LOG(ERROR) << "Written bytes " << result << " is different from length in header "
125 << header.len;
126 return ResultOrAgain::kFailure;
127 }
123 return ResultOrAgain::kSuccess; 128 return ResultOrAgain::kSuccess;
124 } 129 }
125} 130}